Plotting excel data in MATLAB or any program

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 日

0 投票

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

サインインしてコメントする。

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

製品

リリース

R2020a

タグ

質問済み:

2021 年 11 月 19 日

コメント済み:

2021 年 11 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by