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) ;figurehold onstem(x1,A,'r')stem(x2,B,'b') Related SolutionsMATLAB: Plot or stem the length of negative and positive signal y1 = rand(10,1) ;x1 = 1:length(y1) ;y2 = rand(15,1) ;x2 = [1:length(y2)]+length(y1) ;figurehold onstem(x1,y1,'r')stem(x2,y2,'b')legend('x1','x2') MATLAB: Color plotting matlab yellow plot(x1,'y')%orplot(x1,'color',[1 1 0])Read the plot documentation Related QuestionHow to replace the diagonal entries of a square matrix with entries from a vectore of equal lengthCan any one pls help me this code. It is showing that the vectore length are not equal. What should I doHow to plot two figures on the same set of axesPlot a discrete signal
Best Answer