![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/18517779_1589649718238_DEF.jpg)
Manisha Aryal
Followers: 0 Following: 0
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 years 前 | 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 years 前 | 1 个回答 | 0