reading input from workspace in simulink

2 次查看(过去 30 天)
is there any work arround to read input data from workspace without using fromworkspace component in simulink so that i can read these data irrespective to define time column
thanks in advance

回答(2 个)

Azzi Abdelmalek
Azzi Abdelmalek 2013-3-2
编辑:Azzi Abdelmalek 2013-3-2
You can use a constant block from simulink/sources
  7 个评论
Niveen Morsi
Niveen Morsi 2013-3-3
thanks alot Azzi..
but there is a problem on using embedded function block..
whenever i call other matlab functions like randint() or randi() i got an error that its not supported also if i used my own defined function...
any idea how to overcome this plzz..???

请先登录,再进行评论。


TAB
TAB 2013-3-4
Use a Constant block to import the complete matrix from workspace at once. Further use Demux or Index Vector to decompose the matrix into its elements.
No need to fetch the matrix elements one by one from workspace.

类别

Help CenterFile Exchange 中查找有关 Event Functions 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by