MATLAB: Vectore with two colors

dspfbmcfftifftimage processingMATLABofdmvectors

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

Best Answer

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')