필터 지우기
필터 지우기

Sharing Variables between app and matlab workspace?

조회 수: 6 (최근 30일)
Farid
Farid 2022년 8월 15일
댓글: Farid 2022년 8월 17일
Hey community,
I have developed an app with the app designer, I am wondering if there's any way to preview and manipulate the variables generated by the app in matlab's main space.
Thanks in advance
  댓글 수: 4
Walter Roberson
Walter Roberson 2022년 8월 16일
My debugging work-around for situations like that is commonly to global a name at the command line, and assign the desired value to the name. Doing so effectively inserts the name into the visible workspace even if it was a "static" workspace (a function that had an "end" matching its "function" line, which is a situation where you cannot just assign to workspace variables in the debugger.)
Farid
Farid 2022년 8월 17일
Thank you Walter.

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

채택된 답변

Bruno Luong
Bruno Luong 2022년 8월 16일
Put this statement after you generate your data in the callback
mydata = ...
assignin('base', 'mydata')

추가 답변 (0개)

카테고리

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

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by