フィルターのクリア

To workspace block in iterative simulation

2 ビュー (過去 30 日間)
Iksan Bukhori
Iksan Bukhori 2013 年 5 月 27 日
Hi, sorry if this question is too simple but I'll be glad if anyone would answer.
I run a model using inverted pendulum subsystem provided by matlab and I want to
run it using two different initial angle and store a certain variable for each
initial angle. Right now I only iterate the simulation for each initial angle and
save the variable I want using To Workspace block. It works for the first initial
angle, but the other one only gives zero values. FYI, I use array as the data
type for To Workspace block since I need to apply some function to it later and
if possible I don't really want to use parfor since i only use two initial
conditions and short simulation time.
Can anyone help me?
  1 件のコメント
Kaustubha Govind
Kaustubha Govind 2013 年 5 月 29 日
編集済み: Kaustubha Govind 2013 年 5 月 29 日
Please also specify which example model you are using. Is there a For Each subsystem being used, and you place the To Workspace block inside it? What happens if you place the To Workspace block outside the subsystem?

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeGeneral Applications についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by