MATLAB Answers

0

save variables in matlab workspace

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.

  0 Comments

Sign in to comment.

Tags

Products

2 Answers

Answer by Azzi Abdelmalek
on 12 Nov 2012
Edited by Azzi Abdelmalek
on 12 Nov 2012
 Accepted Answer

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

  1 Comment

Sign in to comment.


Answer by Walter Roberson
on 12 Nov 2012

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

  0 Comments

Sign in to comment.