Plotting 2 functions as graphs in a singular window
6 ビュー (過去 30 日間)
古いコメントを表示
I have to functions P and C, I need to plot them as graphs (already inputted an array of x values). I used the following to make plot the graphs: plot(p); plot(c); but i need both plots to appear in the same single figure window, a 2x1 array of plots. any help or hints will be welcomed with this part of of my assignment
0 件のコメント
採用された回答
the cyclist
2014 年 3 月 30 日
Use the subplot command:
figure
subplot(2,1,1), plot(1:10)
subplot(2,1,2), hist(rand(10,5))
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Discrete Data Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!