Error "While setting the "CLim" property of Axes: Value must be a 1x2 vector of numeric.."
Publicado por Luis (16 intervenciones) el 27/09/2019 18:52:00
Hola buen dia, cuando intento graficar los valores de la interfaz con la que estoy trabajando y que todos los valores son iguales por la configuracion me salta ese error, sin embargo al cambiar uno de los valores introducidos el programa perfectamente. El error que me marca es el:
Error using matlab.graphics.axis.Axes/set
While setting the 'CLim' property of Axes:
Value must be a 1x2 vector of numeric type in which the second element is larger than the first and
may be Inf
Error in caxis (line 79)
set(ax,'CLim',arg);
Error in slice (line 137)
caxis(cax,[min(u) max(u)]);
Error in ModuloAnsys1>Calcular_Callback (line 1617)
slice(x,y,z,ans(:,:,:),[1,Nx],[1,Ny],[1,Nz]);
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in ModuloAnsys1 (line 42)
gui_mainfcn(gui_State, varargin{:});
Error in @(hObject,eventdata)ModuloAnsys1('Calcular_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback
La configuracion con la que falla el grafico es con:
Error using matlab.graphics.axis.Axes/set
While setting the 'CLim' property of Axes:
Value must be a 1x2 vector of numeric type in which the second element is larger than the first and
may be Inf

Adjunto los valores de mi interfaz y algunas imagenes de la configuracion con la que falla y con la que no. Creo que es porque todos los valores son iguales (lo cual asi se quiere), sin embargo no se como solucionarlo.
Error using matlab.graphics.axis.Axes/set
While setting the 'CLim' property of Axes:
Value must be a 1x2 vector of numeric type in which the second element is larger than the first and
may be Inf
Error in caxis (line 79)
set(ax,'CLim',arg);
Error in slice (line 137)
caxis(cax,[min(u) max(u)]);
Error in ModuloAnsys1>Calcular_Callback (line 1617)
slice(x,y,z,ans(:,:,:),[1,Nx],[1,Ny],[1,Nz]);
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in ModuloAnsys1 (line 42)
gui_mainfcn(gui_State, varargin{:});
Error in @(hObject,eventdata)ModuloAnsys1('Calcular_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback
La configuracion con la que falla el grafico es con:
Error using matlab.graphics.axis.Axes/set
While setting the 'CLim' property of Axes:
Value must be a 1x2 vector of numeric type in which the second element is larger than the first and
may be Inf
Adjunto los valores de mi interfaz y algunas imagenes de la configuracion con la que falla y con la que no. Creo que es porque todos los valores son iguales (lo cual asi se quiere), sin embargo no se como solucionarlo.
- foromatlab.rar(326,7 KB)
Valora esta pregunta


0