Question

How will the function look in MATLAB? Write a function called plot_prop that takes an input...

How will the function look in MATLAB?

Write a function called plot_prop that takes an input value n. You need to plot a parabola i.e. a plot which ranges from a value to zero and then again from zero back to that value. Your parabola must be able to take any number (n) as an input.

a) The line of the parabola is magenta and a solid line.

b) The points of the parabola are starred.

c) The X-axis is labeled “X-AXIS” and the Y-axis is labeled “Y-AXIS”

d) The title of the plot is “Dillan Metzner”

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Matlab Script:

function plot_prop(n)
x = -n:0.1:n;
y = x.^2;
plot(x,y,'*m');
xlabel('X-AXIS');
ylabel('Y-AXIS');
title('Dillan Metzner');

end

output:

Add a comment
Know the answer?
Add Answer to:
How will the function look in MATLAB? Write a function called plot_prop that takes an input...
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