Question

3. (a) Write a flow chart and the script file using for loop and conditional statements to evaluate and plot the folowing fun
0 0
Add a comment Improve this question Transcribed image text
Answer #1

`Hey,

Note: Brother in case of any queries, just comment in box I would be very happy to assist all your queries

clear all
clc
x=-10:0.01:10;
for i=1:numel(x)
if(x(i)<-1)
    y(i)=20*sqrt(x(i))+6;
elseif(x(i)<5)
    y(i)=8*x(i)*sin(2*pi*x(i));
else
    y(i)=15*(x(i)-1)+1;
end
end
plot(x,y);

MATLAB R2018a Figure Search Documentation Log In HOME EDITOR naertfEile Edit View Insert Iools Desktop Wndow Help Find Files

Add a comment
Know the answer?
Add Answer to:
3. (a) Write a flow chart and the script file using for loop and conditional statements to evaluate and plot the folowing function, assuming that the salar x has a valiue: for x <-1 ys20yx + 6...
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