How can I use pcolor for cell array

1 visualización (últimos 30 días)
Farshid Daryabor
Farshid Daryabor el 9 de Abr. de 2020
Comentada: Walter Roberson el 9 de Abr. de 2020
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 comentarios
Farshid Daryabor
Farshid Daryabor el 9 de Abr. de 2020
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 el 9 de Abr. de 2020
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?

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Graphics Object Programming en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by