axes displays two vector values
Información
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
Mostrar comentarios más antiguos
hi, i have a problem with axes in gui, when i debugging that axes it shows two vector values. how can i proceed when it shows error in that........ pls give any idea...
4 comentarios
Walter Roberson
el 28 de Jun. de 2011
Please copy the relevant code and the error message.
ram
el 28 de Jun. de 2011
Walter Roberson
el 28 de Jun. de 2011
Are you saying that handles.axes1 is a vector with two values? If so then likely what-ever code you used to assign to handles.axes1 is wrong, but we would have to see that code to tell you what to do.
ram
el 28 de Jun. de 2011
Respuestas (1)
Walter Roberson
el 28 de Jun. de 2011
plotyy() returns two axes values as its first output.
Did you perhaps do an assignment such as
h = plot(Y);
If you did, then h would not be an axes handle; it would be a vector of lineseries handles.
3 comentarios
Walter Roberson
el 28 de Jun. de 2011
figure() must be given a figure number, not an axes handle. You cannot create a figure inside of an axes. You can, though, load the figure, locate the axes in the newly loaded figure, copy the children of the axes to the existing axes, and then throw away the temporary figure that was created.
Try this:
newfig = hgload('nfilename6.fig');
figaxes = findobj(newfig,'type','axes');
copyobj(allchild(figaxes(1)), handles.axes1);
delete(newfig);
ram
el 28 de Jun. de 2011
Walter Roberson
el 28 de Jun. de 2011
Sorry, you will have to search the code to figure out how it is assigned. handles.axes1 can be assigned different things in different programs, so we do not know what it is in your program.
La pregunta está cerrada.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!