Feeds
질문
How to store the indexes of the values which satisfies the given condition while running a loop. The condition is satisfied many times but at the end only i only get the index of last condition when value was satisfied.
function indices=Saddle(M) [a,b]=size(M); P=max(M,[],2); Q=min(M); for i=1:a for j =1:b if P(i,1)==Q(1,j)%my c...
4년 초과 전 | 답변 수: 1 | 0
1
답변질문
How can I store values that satisfies only the specific condition from the loop without overwrriting?
Basically, I am trying to write code for this problem. Write a function called saddle that finds saddle points in the input mat...
4년 초과 전 | 답변 수: 1 | 0