Export from workspace to simulink
1 次查看(过去 30 天)
显示 更早的评论
I have a honework and i dont know what kind of block is the big one .I need to bring from workspace to simulink values.
0 个评论
回答(1 个)
Renato Agurto
2015-12-22
编辑:Renato Agurto
2015-12-22
Simulink -> sources -> constant
if you have a constant in the workspace. You just need to write the name of the variable inside the block. Or:
Simulink -> sources -> From workspace
if you want a signal. For example:
simin.time = (1:10)';
simin.signals.values = simin.time.^2;
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Environment Customization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!