I want change range axes;;
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
rollcakes
el 7 de Nov. de 2015
Comentada: rollcakes
el 7 de Nov. de 2015
handles.htext=uicontrol('style','text','string','enable grid program');
set(handles.htext,'background','k');
set(handles.htext,'ForegroundColor','w');
set(handles.htext,'position',[0 M/2-5 120 15]);
handles.axes1=axes();
set(handles.axes1,'units','pixels');
handles.axes2=axes();
set(handles.axes2,'units','pixels');
handles.axes1 = subplot(2, 2, 1);
handles.axes2 = subplot(2, 2, 3);
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/151503/image.jpeg)
0 0.5 1 <<<<this range how can i change?
0 comentarios
Respuesta aceptada
Geoff Hayes
el 7 de Nov. de 2015
rollcakes - use the axis function to change the limits for each axis. For the first axes (in your above code), you could do something like
axis(handles.axes1, [0 10 0 2])
which would change the x-axis limits to [0 10] and the y-axis limits to [0 2].
Más respuestas (0)
Ver también
Categorías
Más información sobre Subplots 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!