How can I use pcolor for cell array
이전 댓글 표시
I really appriceiate help me to plot attached file for cell format. Thanks in advance.
figure
pcolor(datenum(Time),-PRES,TEMP);shading flat;colorbar
set(gca,'Color',[0.5 0.5 0.5]);
colormap(jet)
댓글 수: 3
Walter Roberson
2020년 4월 9일
pcolor cannot be used for cell arrays.
You can consider cellfun to invoke pcolor on each member of the cell, but unless you were careful they would all appear on top of each other hiding the earlier ones below the later ones.
Farshid Daryabor
2020년 4월 9일
Walter Roberson
2020년 4월 9일
You could probably use something like that, but your cell arrays have 358 entries, and you have a figure() call there, so you would end up making 358 figures. Is that what you wanted?
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Axis Labels에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!