フィルターのクリア

multiple plot on single x axis

4 ビュー (過去 30 日間)
Kabir Shariff
Kabir Shariff 2022 年 3 月 6 日
コメント済み: Kabir Shariff 2022 年 3 月 9 日
Hello,
I would like to plot multiple data on a single x axis
Here is an example,
I used subplot to plot the data in this form
How can I plot on a single chat that varies for different x position ( 1D..5D..20D) and varying turbulence data?
Merci

回答 (1 件)

Image Analyst
Image Analyst 2022 年 3 月 6 日
plot(tix, yD1, '.-', 'LineWidth', 3, 'MarkerSize', 14);
hold on;
plot(tix, yD2, '.-', 'LineWidth', 3, 'MarkerSize', 14);
plot(tix, yD3, '.-', 'LineWidth', 3, 'MarkerSize', 14);
plot(tix, yD4, '.-', 'LineWidth', 3, 'MarkerSize', 14);
plot(tix, yD5, '.-', 'LineWidth', 3, 'MarkerSize', 14);
  3 件のコメント
Image Analyst
Image Analyst 2022 年 3 月 8 日
Your top figure and bottom figure are different. Attach your data and say what rows or columns you want plotted in each subplot, and say how many rows and columns of subplots you want.
Kabir Shariff
Kabir Shariff 2022 年 3 月 9 日
Hello,
I attached herewith my data.
From the data, I grouped it into different X values i.e X = 1, 2,5,10,20...
For each X value, the first column is y(D), the 2nd, third and forth column is for the Tix data grouped into cases A, B,C (corresponding to Case 1, Case 2, Case 3) in the first figure.
Finally, I want the plot to appear in this form
Thank you

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

カテゴリ

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