photo

Manisha Aryal


Last seen: meer dan een jaar ago Active since 2020

Followers: 0   Following: 0

Statistics

Feeds

View by

Question


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...

ongeveer 4 jaar ago | 1 answer | 0

1

answer

Question


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...

ongeveer 4 jaar ago | 1 answer | 0

1

answer