Plotting excel data in MATLAB or any program

조회 수: 2 (최근 30일)
Olalekan Adesina
Olalekan Adesina 2021년 11월 19일
댓글: Olalekan Adesina 2021년 11월 19일
How do I plot an XYY graph? Please see the attached files.....
I would love to plot ("japs, himp and jack") as values of Y in the left Y-axis, and Temperature as the value of Y in the right Y-axis and "Time" for X on the X axis. The result should look similar to the one attached along with this message.
Thank you.

답변 (1개)

KSSV
KSSV 2021년 11월 19일
T = readtable('Calculation.xlsx')
figure
hold on
yyaxis left
plot(T.(1),T.(2),T.(1),T.(3),T.(1),T.(4))
yyaxis right
plot(T.(1),T.(6))
  댓글 수: 1
Olalekan Adesina
Olalekan Adesina 2021년 11월 19일
Thanks for your response. But the output should look similar to the file that is attached to this message.
The question is to plot ("japs, himp and jack") as values of Y in the left Y-axis, and Temperature as the value of Y in the right Y-axis and "Time" for X on the X axis.
Thank you

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

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by