필터 지우기
필터 지우기

Plotting the each array of cell in different colour

조회 수: 1 (최근 30일)
Gova ReDDy
Gova ReDDy 2014년 1월 12일
답변: Image Analyst 2014년 1월 13일
Hello, I have an cell array of size(1x7) and I am plotting all the values from this cell array as shown
e=1;
for t=1:1:length(needed)
for k=1:1:length(needed{t})
r(1,e)=needed{t}(1,k);
e=e+1;
end;
end;
plot(r);
The above plots all values of cell array in a single color.But Is there a way of plotting this cell array values such that each array of the cell plotted should have different values instead of having a single color.
I mean plotting the values of array1 with red and array2 with green and so on such that values belonging to each array should contain different color for plot. If any other way exists,as I just want to identify the limits of each array from the plot.

채택된 답변

Image Analyst
Image Analyst 2014년 1월 13일
Look at the first link on this search of Yair's site: http://undocumentedmatlab.com/?s=table

추가 답변 (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