||
感谢中科院大气所的Huang Yong-jie给出解决方案:
>A = (/ 1, 2, 3, 4, 5, 6, 7, 8, 9/)
>B = (/ 2, 14, 7, 1/)
>C = A(ind(.not.ismissing(get1Dindex(B,A))))
>print(C)
Variable: C
Type: integer
Total Size: 12 bytes
3 values
Number of Dimensions: 1
Dimensions and sizes: [3]
Coordinates:
(0) 1
(1) 2
(2) 7
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-10-31 09:54
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社