How can I use pcolor for cell array

조회 수: 1 (최근 30일)
Farshid Daryabor
Farshid Daryabor 2020년 4월 9일
댓글: Walter Roberson 2020년 4월 9일
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
Farshid Daryabor
Farshid Daryabor 2020년 4월 9일
I can use cellfun to invoke function attached, but I don't know how, it should be something like this?
plot_fig = cellfun(@hovmoller_plot, Time, PRES,TEMP , 'uni', 0 )
Walter Roberson
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개)

카테고리

Help CenterFile Exchange에서 Graphics Object Programming에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by