How to plot data of 3 columns with different line style.

3 ビュー (過去 30 日間)
Rangasamy Kotteeswaran
Rangasamy Kotteeswaran 2017 年 8 月 21 日
i am supposed to plot the data plot(EX_1(1:100,1:3),'k-'). with this I get 3 plots with same black solid style. But i need different colours. any answer. thanks in advance

採用された回答

José-Luis
José-Luis 2017 年 8 月 21 日
編集済み: José-Luis 2017 年 8 月 21 日
Best to do it explicitly for each line, but if you want automagic:
set(groot,'defaultAxesColorOrder',[0,0,0],'defaultAxesLineStyleOrder','-|:|--');
plot(rand(10,3))
  3 件のコメント
Adam
Adam 2017 年 8 月 21 日
If you are in an archaic version of Matlab use
set( 0,... )
instead
Rangasamy Kotteeswaran
Rangasamy Kotteeswaran 2017 年 8 月 21 日
thankyou. it worked

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGraphics Performance についてさらに検索

タグ

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by