How to find and display some value with condition?
Show older comments
Hi, i want to find and also display in message box all the value which is satisfied conditions:
given
x = randi(10,100,1);
y = 1:1:100;
z = y* exp(x);
s = max(z)
find all z that is z > 0.9*s and also display which x corresponds to z
please help, many thanks
1 Comment
Image Analyst
on 23 Aug 2014
Edited: Image Analyst
on 23 Aug 2014
But if z = y * exp(x); then z is a scalar for those vector shapes. So I guess the answer is that one scalar element.
Accepted Answer
More Answers (0)
Categories
Find more on Programming in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!