필터 지우기
필터 지우기

Changing variable from appdesigner in matlab script

조회 수: 4 (최근 30일)
Furkan Karaman
Furkan Karaman 2022년 10월 5일
댓글: Eric Delgado 2022년 10월 21일
Hello,
How can I send a value for a variable from appdesigner to the workspace which is then used in a matlab script?

채택된 답변

Eric Delgado
Eric Delgado 2022년 10월 5일
You can use assignin to send the variable to Matlab base workspace.
% Suppose that you have a variable named "app.myVariable"
assignin('base', 'myVariable', app.myVariable)
openvar('myVariable')
  댓글 수: 6
Furkan Karaman
Furkan Karaman 2022년 10월 19일
Thank you so much Eric! Now it works
Eric Delgado
Eric Delgado 2022년 10월 21일
Great to hear! Now that you are super happy with my support, you accept my answer, ok? :)

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Manage Products에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by