필터 지우기
필터 지우기

What's the mean of "axes(handles.axes1) " in GUI plot ?

조회 수: 12 (최근 30일)
Nguyen Trong Nhan
Nguyen Trong Nhan 2013년 12월 23일
댓글: Image Analyst 2013년 12월 23일
When plotting in GUI, I see someones have the line: axes(handles.axes1); What does that line mean ? Could I skip that line ? thanks very much.

채택된 답변

Image Analyst
Image Analyst 2013년 12월 23일
It means that the current axes should be set to axes1. Anything you do like title(), xlabel(), ylabel(), plot(), bar(), legend() or whatever, will now be applied to axes1 (unless you explicitly pass a different axes into the function which would override the default current axes).
  댓글 수: 4
Nguyen Trong Nhan
Nguyen Trong Nhan 2013년 12월 23일
편집: Image Analyst 2013년 12월 23일
I create a poup menu have 3 thing: qua trinh dang ap, qua trinh dang tich, qua trinh dang nhiet. Its tag is cycle. if I write: get(handles.cycle,'string'); It don't understand and can't get the string from popup menu. I see on the internet, they write:
contents = get(handles.cycle,'String');
cyclevalue = contents{get(handles.quatrinh,'Value')};
Why I have to do that to get string from popup menu ? thanks
Image Analyst
Image Analyst 2013년 12월 23일
That should work. What is the value of contents? Is it null? Or do you get an error? If so, what is the error?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by