I have a function which calls a script. There are some variables in script. I want to save them to my command window. How can i do that. Any help fellas.

 채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2012년 11월 12일
편집: Azzi Abdelmalek 2012년 11월 12일

0 개 추천

value=15;
assignin('base','var',value)
% 'var' is your variable name

댓글 수: 2

satendra kumar
satendra kumar 2012년 11월 12일
Thanks Bud :)
Is there any way to load the variable directly to base workspace ? becuase Its not possible to do this
assignin('base','var')
I want to do like above.

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

추가 답변 (1개)

Walter Roberson
Walter Roberson 2012년 11월 12일

0 개 추천

assignin('base', 'variablename', value)

카테고리

제품

태그

Community Treasure Hunt

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

Start Hunting!

Translated by