Color plotting of a plot

Hi everyone,
I can plot curve with a color of my wish(red) as
plot(sind(1:360),'red');
and this works
If i want to do it through a variable like,
a = char(red);
this does not work,
plot(sind(1:360),'',a,'');
Please help

1 件のコメント

Luffy
Luffy 2012 年 7 月 3 日
Can anybody help me

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

 採用された回答

Walter Roberson
Walter Roberson 2012 年 7 月 3 日

0 投票

a = 'red';
plot(sind(1:360),a);

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeLine Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by