필터 지우기
필터 지우기

Selecting a UIAxes from a drop down box and assigning it to ax to be called by other funtions

조회 수: 2 (최근 30일)
Hello, Im trying to list out children in plots of an uiaxis, but want the uiaxis to be user selected i.e. UIAxes, or UIAxes2 or UIAxes3 etc.
I have a dropdownbox with the following items in:
UIAxes, UIAxes2, UIAxes3, UIAxes4
Depending on whats selected, I then want to get the children of that axis, and this is my code:
ax=app.AxisSelectDropDown.Value;
ax=['app.',ax];
b=ax.Children % b(1) is last object added to uiaxes
But Im getting an error
Dot indexing is not supported for variables of this type.

채택된 답변

Voss
Voss 2024년 2월 26일
Seems like you mean this:
ax=app.AxisSelectDropDown.Value;
ax=app.(ax);
b=ax.Children % b(1) is last object added to uiaxes
  댓글 수: 3

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Graphics Object Programming에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by