Error in function "rotate" in version 2015a
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Mehdi
el 23 de Sept. de 2015
Comentada: Walter Roberson
el 25 de Sept. de 2015
Hi everyone,
I wrote a code in version 2013a which uses rotate function but when I run the code in MATLAB 2015a I get the following error:
Error using matlab.graphics.GraphicsPlaceholder/get
Property type not found in class matlab.graphics.GraphicsPlaceholder, or is not present in all elements of the array of class matlab.graphics.GraphicsPlaceholder.
Error in rotate (line 59)
t = get(h(i),'type');
Error in c_the_prev (line 70)
rotate(hu1, [0 1 0], 90, [0 0 0])
Error in custom_color>design_Callback (line 220)
c_the_prev
Error in custom_color_custom_color_OpeningFcn (line 84)
design_Callback(hObject, eventdata, handles);
Error in gui_mainfcn (line 220)
feval(gui_State.gui_OpeningFcn, gui_hFigure, [], guidata(gui_hFigure), varargin{:});
Error in custom_color (line 42)
gui_mainfcn(gui_State, varargin{:});
What causes the error? I checked the Help documentation for rotate but couldn't find anything different from 2013a. Any insight would be appreciated.
0 comentarios
Respuesta aceptada
Walter Roberson
el 23 de Sept. de 2015
Whatever object hu1 that you are attempting to rotate has not been initialized. The variable exists but has not been assigned an actual graphics object.
4 comentarios
Walter Roberson
el 25 de Sept. de 2015
get(hu1(1),'type') of root definitely corresponds to undefined. If you were to check in previous releases you would likely find that your hu1(1) value was 0.
I responded yesterday about topo; see http://uk.mathworks.com/matlabcentral/answers/244774-error-in-running-load-topo-in-matlab-2015a
Más respuestas (0)
Ver también
Categorías
Más información sobre 3-D Scene Control en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!