How do I plot table with subplot?
Show older comments
Hi everyone,
I have a simple 1x3 table
T=[35 40 45]
Below is a sample syntax from class (not my code).
I'm trying to figure out how to use x and y1 based on the code below.
Also how I could use subplot if I have multiple rows and columns.
I appreciate all the help. Thanks.
x = linspace(-2*pi, 2*pi)
y1 = sin(x);
plot(x,y1)
5 Comments
madhan ravi
on 23 Oct 2020
What you have is an array with 3 elements, you need to elaborate what you want to do with those three values?
Emmanuel Matata Bili Bili
on 23 Oct 2020
Emmanuel Matata Bili Bili
on 25 Oct 2020
Cris LaPierre
on 25 Oct 2020
You do not need the hold on and hold off commands.
Emmanuel Matata Bili Bili
on 27 Oct 2020
Answers (1)
Cris LaPierre
on 23 Oct 2020
0 votes
I recommend going through MATLAB Onramp. Chapter 9 covers plotting, but it sounds like some of the other chapters would be helpful as well.
1 Comment
Emmanuel Matata Bili Bili
on 23 Oct 2020
Categories
Find more on Logical 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!