Matlab - Ayuda ->Warning: Matrix dimensions must agree, not rendering mesh

 
Vista:
sin imagen de perfil

Ayuda ->Warning: Matrix dimensions must agree, not rendering mesh

Publicado por juanfran (9 intervenciones) el 25/02/2014 00:01:20
HOLA y gracias
Cuando utilizo la funcion "set(hs,'xdata',matrizX)" me aparecete el siguiente error (Warning: Matrix dimensions must agree, not rendering mesh) y no comprendo porque, si alguien me lo puede aclarar lo agradeceria.

CODIGO:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[xaudmesh,yaudmesh]=meshgrid(0:0.05:1,0:0.05:1);
h=surf(xaudmesh,yaudmesh,-0.01*ones(size(xaudmesh)),ones(size(xaudmesh)));
 
set(h,'edgecolor','none')
set(h,'facecolor','interp')
set(h,'tag','acouaudiencesurface')
set(h,'faceoffsetbias',10)%0.3/max(data.Planta(:,1)))
men=uicontextmenu;
set(h,'uicontextmenu',men)
item1=uimenu(men,'label','include room','callback','Radit2d2(''matchroom'')');
item2=uimenu(men,'label','reduce size','callback','Radit2d2(''reducesurfacesize'')');
item3=uimenu(men,'label','area=','separator','on');
%==========================================================%
 
ha=findobj('tag','acouaxes','parent',gcf);
hv=findobj('tag','acouaudiencevertex','parent',ha);
hs=findobj('tag','acouaudiencesurface','parent',ha);
 
 
set(hs,'xdata',matrizX)
set(hs,'ydata',matrizY)

Nota: matrizX y matrizY son dos matrices de tamaño 145x85


un saludo y gracias
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder