필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

how to plot in two axes

조회 수: 1 (최근 30일)
Rafet
Rafet 2013년 9월 7일
마감: MATLAB Answer Bot 2021년 8월 20일
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

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2013년 9월 7일
편집: Azzi Abdelmalek 2013년 9월 7일
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
Rafet
Rafet 2013년 9월 8일
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 2013년 9월 8일
hold(axeshandle,'on')

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by