필터 지우기
필터 지우기

Plotting workspace variables in app designer

조회 수: 12 (최근 30일)
Amit Patankar
Amit Patankar 2021년 6월 22일
댓글: Amit Patankar 2021년 6월 23일
I would like to plot a variable obtained in Workspace After simulation, against the time, through app designer push button.
I would like to know the syntax for the same.

답변 (1개)

Kishan Dhakan
Kishan Dhakan 2021년 6월 23일
Since you are able to obtain the variable in workspace, there must be some way to pass it to the MATLAB App designer (say via a function call, or running the process that gets you the variable inside app designer, etc.). Once you get the variable stored in app designer:
1) Drag and drop a button component and Axes component in app view. Click on the button. Click 'callbacks' on the right pane. Add a buttonPushed callback which takes you to the boilerplate code.
2) Add:
plot(UIAxes, variableYouWant)
  댓글 수: 1
Amit Patankar
Amit Patankar 2021년 6월 23일
I am using 2017a version of matlab. How to pass variable from workspace to app designer ?

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

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

제품


릴리스

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by