필터 지우기
필터 지우기

GUI - axis properties

조회 수: 1 (최근 30일)
Ashraf
Ashraf 2012년 6월 22일
Hi everybody,
I programmed a gui matlab file and I have a problem with it... I have a function (I wrote) that give the user graph as output, it's name: "SVM_energy_lie_det(file_name,answers_time)", and I want to write the graph in axes in my GUI file. I call set function (I have the parameters file_name and answers_time) like this: "set(handles.axes1,'String',SVM_energy_lie_det(file_name,answers_time));" . I got this remark: "There is no 'String' property in the 'axes' class.", and I tried to find properity for axis without any success. (I found a lot of properties in axes class in matlab website, but I do'nt get the right one) I hope that someone worked with this function in the past and can help me...
Thanks, Ash.

답변 (1개)

Christoph
Christoph 2012년 6월 22일
what about the property 'title'? If this is still not okay the next way is placing the string as a text in the axes which would look like : text(Xpos, Ypos, string,'parent', yourfigure)
  댓글 수: 1
Christoph
Christoph 2012년 6월 22일
neverthe less axes and axis are two different things..axis is a member of axes...but if you want to label an axis use xlabel() e.g. ylabel()

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

카테고리

Help CenterFile Exchange에서 Labels and Annotations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by