Color plotting of a plot

조회 수: 12 (최근 30일)
Luffy
Luffy 2012년 7월 3일
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일
a = 'red';
plot(sind(1:360),a);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by