Question

3. Create a random floating point number from -8.0 up to, but not including, 4.0 using Matlab. (1 point) Please write code using matlab
0 0
Add a comment Improve this question Transcribed image text
Answer #1

%Start
xmin=-8.0;
%End
xmax=8.0;
%Number of Random no
n=20;
%Element not include
a=4.0;
x=xmin+rand(1,n)*(xmax-xmin);
result = x(find(x~=a))

Add a comment
Know the answer?
Add Answer to:
Please write code using matlab 3. Create a random floating point number from -8.0 up to,...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT