problems in loop with findpeaks
Mostra commenti meno recenti
Hi, I am having problems in a loop with the function "findpeaks.m". I think the solution is very simple, but I cannot find it.
My code is:
A=[1 2 3 1 2; 1 15 2 5 2;1 2 1 2 1];
[x y]=size(A);
a=zeros(x,5);
for i=1:1:x;
a(i)=findpeaks(A(i,:));
end
The problem is findpeaks function give me vectors with different size. Could someone help me? Thanks in advance.
Risposta accettata
Più risposte (0)
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!