vectore with two colors

조회 수: 4 (최근 30일)
abdullah qasim
abdullah qasim 2019년 2월 11일
편집: abdullah qasim 2019년 2월 11일
I merged two parts together and I want to draw them together but in two different colors
fb=[fr;fi];
when
stem (fb) ;
the output one colors I want output two colors in one plot

채택된 답변

KSSV
KSSV 2019년 2월 11일
편집: KSSV 2019년 2월 11일
A = rand(3,1) ;
B = rand(3,1) ;
x1 = 1:length(A) ;
x2 = (1:length(B))+length(A) ;
figure
hold on
stem(x1,A,'r')
stem(x2,B,'b')
  댓글 수: 7
KSSV
KSSV 2019년 2월 11일
I gave you an exampel code.....you need to do the same with that....your fr is A and fl is B...
abdullah qasim
abdullah qasim 2019년 2월 11일
편집: abdullah qasim 2019년 2월 11일
thank u very much

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Transforms에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by