필터 지우기
필터 지우기

How can i have the posterior minimum and position of that?

조회 수: 1 (최근 30일)
Xiomara Escobar
Xiomara Escobar 2020년 11월 7일
Hello, I have a problem, I have the maximum of a vector, and I have to obtain posterior minimum and the position of that, i have this code, and it's ok but in the cell number 41 the maximum is the last number of the matrix, so Seg_leng-posi_max is 0, and matlab say me that: Second argument must be a positive scalar integer.
I don't know what to do for that case.
for l=1:length(Rd)
for k=1:1:num_Seg
[maxim(l,k),posi_max(l,k)]=max(x{l,k});
[posi_min{l,k},column{l,k},cero{l,k}]=find(x{l,k}<0,Seg_leng-posi_max(l,k),'last');
end
end
Seg_leng is the length of mi cell, 200, posi_max, is the position where is my maximum.
i

답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by