How do I plot table with subplot?

조회 수: 13 (최근 30일)
Emmanuel Matata Bili Bili
Emmanuel Matata Bili Bili 2020년 10월 23일
댓글: Emmanuel Matata Bili Bili 2020년 10월 27일
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
Cris LaPierre
Cris LaPierre 2020년 10월 25일
You do not need the hold on and hold off commands.
Emmanuel Matata Bili Bili
Emmanuel Matata Bili Bili 2020년 10월 27일
Sounds good.
Thanks Cris!!

댓글을 달려면 로그인하십시오.

답변 (1개)

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

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by