I want to find indexes for maximum and minimum
2 次查看(过去 30 天)
显示 更早的评论
I am new to matlab and having difficulty. I want to find indexes for maximum and minimum and put them into sets of array. Here is what I have tried. I have no clue on how to produce data for minimum X and Y indexes. Much appreciated for help!
Ry = HeelArray(:,3);
Ry2= HeelArray(:,6);
plot (Ry)
hold on
plot (Ry2)
findpeaks(Ry2, 'Minpeakheight',500);
[Minima, MinIdx] = findpeaks(Ry2, 'Minpeakheight',500);
1 个评论
Image Analyst
2018-10-20
Can you attach HeelArray in a .mat file with the paper clip icon, and attach a PNG screenshot with the green and brown frame icon.
采纳的回答
madhan ravi
2018-10-20
编辑:madhan ravi
2018-10-20
findpeaks(-Ry2); %see carefully I added minus sign in front of Ry2
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!