multiple plot on single x axis
조회 수: 4 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
답변 (1개)
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
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.
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
