How to pass values from GUI to workspace

조회 수: 5 (최근 30일)
Arun Badigannavar
Arun Badigannavar 2012년 12월 4일
How to pass values from GUI to workspace

답변 (2개)

Vishal Rane
Vishal Rane 2012년 12월 4일
Refer this : Assignin

Jan
Jan 2012년 12월 4일
To which workspace? Each function has its own one. Do you mean the base-workspace, which is available in the command window? Then:
assignin('base', 'A', 123 + 17)
Please note, that using such remote-creation of variables frequently will make it much harder to debug your program. Imagine you have tweo different GUIs which assign the same variable. Then it is impossible to find the function, which has applied the last changes.

카테고리

Help CenterFile Exchange에서 Workspace Variables and MAT Files에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by