Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

how to plot in two axes

1 visualización (últimos 30 días)
Rafet
Rafet el 7 de Sept. de 2013
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
hi, i have two axes on my gui file, and i wanna plot different graphs to these axes, but i cant control where to plot, it plots wrong on axis, but when i try:***bold***
handlename=findobj(gcbf,'Tag','axes1')
plot(handlename,[..],[..])
matlab returns the error "vectors must be same lengths."
what is the problem?
thanks in advance

Respuestas (1)

Azzi Abdelmalek
Azzi Abdelmalek el 7 de Sept. de 2013
Editada: Azzi Abdelmalek el 7 de Sept. de 2013
plot(x,y)
% x and y should have the same number of element
If you want to plot on axes1
plot(handles.axes1,x,y)
  2 comentarios
Rafet
Rafet el 8 de Sept. de 2013
i've tried it but it only works while the commands are written on gui funtion, but i want to create a different function and call it during the process.
if i dont use function it's ok, but this time i need to specify the axes to be "hold on // hold off", how can it be done then?
Arthur
Arthur el 8 de Sept. de 2013
hold(axeshandle,'on')

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by