Effacer les filtres
Effacer les filtres

subplot, and axes gui error

1 vue (au cours des 30 derniers jours)
Paolo Rossi
Paolo Rossi le 23 Fév 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 commentaires
Walter Roberson
Walter Roberson le 23 Fév 2012
Is the error on the waterfall() call?
Which MATLAB version are you using?
Image Analyst
Image Analyst le 23 Fév 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.

Connectez-vous pour commenter.

Réponses (0)

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by