matlab中怎样提取矩阵里特定的数据

如题所述

可以用for循环做
h=[]
j=1
for i=2:length(m)
if m(i)>m(i-1)&m(i)>m(i+1)
h(j)=m(i)
j=j+1
end
end
温馨提示:答案为网友推荐,仅供参考
相似回答