Plot question as values for both axis are different

1 回表示 (過去 30 日間)
Viswajit Talluru
Viswajit Talluru 2023 年 1 月 16 日
コメント済み: the cyclist 2023 年 1 月 16 日
x axis from this picture should be on the y axis on the new graph
  2 件のコメント
Viswajit Talluru
Viswajit Talluru 2023 年 1 月 16 日
Viswajit Talluru
Viswajit Talluru 2023 年 1 月 16 日
These are the two plots I would like to plot both x axis onto one graph. as both the bpoints do no math how do I plot?

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

回答 (1 件)

the cyclist
the cyclist 2023 年 1 月 16 日
Do you mean you just want to place two plot on the same axes? Then you use hold
figure
hold on
plot([2 3 5],[7 11 13])
plot([2 3 5],[29 31 37])
If you need different y axes for the two plots, you can use yyaxis.
  2 件のコメント
Viswajit Talluru
Viswajit Talluru 2023 年 1 月 16 日
編集済み: Viswajit Talluru 2023 年 1 月 16 日
I have two plots From figure 1 and 2. Figure 1 x-axis should be y-axis on a new plot and Figure 2 x-axis be the x-axis on the same new plot. Both the data is of different set of values so how do I plot?
the cyclist
the cyclist 2023 年 1 月 16 日
I really don't understand what you mean. Sorry.
Here are three things you can do, that might help:
  • Upload your data. You can use the paper clip icon in the INSERT section of the toolbar.
  • Making a drawing by hand of what you want the plot to look, take a picture, and upload the image.
  • Go to the MATLAB Plot Gallery, and see if any of the plots there are similar to the style of plot you want to make. You can get code there and adapt it to what you need.

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

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by