save variables in matlab workspace
25 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Azzi Abdelmalek
2012-11-12
编辑:Azzi Abdelmalek
2012-11-12
value=15;
assignin('base','var',value)
% 'var' is your variable name
2 个评论
Shiv Nileshkumar Matliwala
2022-12-15
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 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Debugging and Analysis 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!