How do I plot table with subplot?

13 vues (au cours des 30 derniers jours)
Emmanuel Matata Bili Bili
Emmanuel Matata Bili Bili le 23 Oct 2020
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 commentaires
Cris LaPierre
Cris LaPierre le 25 Oct 2020
You do not need the hold on and hold off commands.
Emmanuel Matata Bili Bili
Emmanuel Matata Bili Bili le 27 Oct 2020
Sounds good.
Thanks Cris!!

Connectez-vous pour commenter.

Réponses (1)

Cris LaPierre
Cris LaPierre le 23 Oct 2020
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 commentaire
Emmanuel Matata Bili Bili
Emmanuel Matata Bili Bili le 23 Oct 2020
Hi Cris,
Thanks for the feedback. I checked it out and I'm able to do the provided exercises in MATLAB Onramp.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by