I have 2 graphs , on the Y axis I have Acceleration in graph. 1 and Speed in graph 2. And on the X axis for both I have Period (Seconds). How can I create a third chart?
古いコメントを表示
I have 2 graphs , on th
The third graph must have in Y the acceleration value and in X axis must have the displacement value. Thanks in advance for your help
1 件のコメント
Dyuman Joshi
2024 年 4 月 25 日
編集済み: Dyuman Joshi
2024 年 4 月 25 日
Show us what have you tried yet.
What are the inputs you are working with? What is the expected output?
How are the first 2 graphs related to the graph you want to obtain?
採用された回答
その他の回答 (2 件)
If you want to make three graphs in one window, try subplots.
figure(1);
subplot(1,3,1);
plot([0 1], [0 1]);
title('Acceleration vs Period');
subplot(1,3,2);
plot([0 1], [0.5 0.5]);
title('Speed vs Period');
subplot(1,3,3);
plot([0 1], [1 0]);
title('Acceleration vs Displacement');
Sam Chak
2024 年 4 月 25 日
How about this?
figure(3) % create a 3rd graph
plot(displacement, acceleration) % make the plot
カテゴリ
ヘルプ センター および File Exchange で 2-D and 3-D Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
