フィルターのクリア

How to change the color & linewidth when plotting a ftsobj

2 ビュー (過去 30 日間)
Léon
Léon 2013 年 2 月 3 日
Hello,
the normal settings using plot() are clear but when plotting a ftsobj it doesn't work actually. Can somebody please explain to me how I can set the linewidth = 2 for both series and the first one color=[1 0 0] and the second one to color=[0 0 0]?
Thank you very much for your help!
ts1 = random('Normal',0,1,100,1);
ts2 = random('Normal',0,3,100,1);
dates = [today-99:today]';
fts1 = fints(dates, ts1);
fts2 = fints(dates, ts2);
X = [fts1,fts2];
plot(X);

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 2 月 3 日
編集済み: Azzi Abdelmalek 2013 年 2 月 3 日
ts1 = random('Normal',0,1,100,1);
ts2 = random('Normal',0,3,100,1);
dates = [today-99:today]';
fts1 = fints(dates, ts1);
fts2 = fints(dates, ts2);
X = [fts1,fts2];
h=plot(X)
set(h,'linewidth',2)
set(h(1),'color',[1 0 0])
set(h(2),'color',[0 0 0])

その他の回答 (1 件)

Léon
Léon 2013 年 2 月 3 日
Thank you very much for your help! I actually didn't know how to access the handle.

カテゴリ

Help Center および File ExchangeRisk Management Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by