MATLAB Answers

How tatement to use if statement to eliminate unwanted value

1 view (last 30 days)
sadiqa ilyas
sadiqa ilyas on 21 Sep 2019
Commented: sadiqa ilyas on 21 Sep 2019
Hi,.
I have set of values like .001,0.002,...inf
i want to find the max value from these excluding inf
X=U/10000;
i=[X]
m=max(i);
if m == Inf;
m=m(i-1);
end
How to get rid of Inf.

  1 Comment

sadiqa ilyas
sadiqa ilyas on 21 Sep 2019
0.0001
0.0002
0.0003
0.0004
0.0005
0.0006
0.0007
0.0008
0.0009
0.0010
0.0011
0.0012
0.0013
0.0014
0.0015
0.0016
Inf
Values from which i have to select maximum number and exclude inf

Sign in to comment.

More Answers (0)


Translated by