Borrar filtros
Borrar filtros

subplot, and axes gui error

1 visualización (últimos 30 días)
Paolo Rossi
Paolo Rossi el 23 de Feb. de 2012
i have write two version of the same algoritm to visualize a matrix but in one case it doesen't work:
CASE 1) RUNNING OK
subplot(1,6,2)
waterfall(phid,1:NLINEE,ZRAV1_10); shading flat
set(findobj('Type','patch'),'linewidth',24)
axis ([-200 200 0 NLINEE+1])
drawnow
where:
phid = -pi:pi/60:((pi)-(pi/60));
NLINEE = 16;
ZRAV1_1 = 16 X 120 initializaterd at 0
CASE 2) NOT WORK ERROR MESSAGE CAT
ax2 = axes('Box','on',...
'XMinorTick','on',...
'Fontsize',8,...
'Position',[0.24 0.35 0.14 0.6],...
'Xlim',[-200 200],...
'Ylim',[0 17],...
'Xtick',-180:60:180,...
'CLim',[0 1],...
'NextPlot','replacechildren');
waterfall(ax2,phid,1:NLINEE,ZRAV1_10); shading flat
set(findobj('Type','patch'),'linewidth',24)
axis ([-200 200 0 NLINEE+1])
drawnow
any idea ?
thanks
  2 comentarios
Walter Roberson
Walter Roberson el 23 de Feb. de 2012
Is the error on the waterfall() call?
Which MATLAB version are you using?
Image Analyst
Image Analyst el 23 de Feb. de 2012
It worked for me. No error message once I changed ZRAV1_1 to ZRAV1_10 and got rid of the blank line in the ax2 line. Even before then I never got any sort of "cat" error message.

Iniciar sesión para comentar.

Respuestas (0)

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by