How to plot 2 discrete plots (each of a different colour) with stem ?
4 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I am trying to use stem to plot a discretised cos and sine waves on a same plot but every point is having a different colour. I want my sine wave points to be of a same colour (e.g. red) and my cos wave points to be of another colour (e.g. blue). Does someone know how to fix this ? Thanks in advance.
plots=[a; b];
time=[t;t]; %Same amount of time for both waves so both have the same vector t
stem(time,graphs);
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!