points = [
-9.9043877608991468201413092380493, 426.34796945271797204125533010993, Maximum
-2.9714737944057521874892206269196, 422.13223302035451265143272598599, Minimum
9.3758615553048990076305298649689, 441.87005169359418197397861057075, Maximum
]
我想循环并创建一个新矩阵,其中只有第三列与“最大值”匹配的值。
尝试时:
idx = ( points(:,3)=='Maximum' )
我得到:
Maximum == Maximum
Minimum == Maximum
Maximum == Maximum
有任何想法吗?谢谢!