structure-without-time 形式
Show older comments
Simulinkにて from warkspaceブロックのデータ反復入力機能を使用したいのです。 データタイプがマニュアルによると、structure-without-time 形式出ない場合、エラーとなる とのことですが、structure-without-time 形式データはどのように生成すれば宜しいでしょうか。
Answers (1)
Naoya
on 19 Feb 2018
時間なしの構造体については、下記例のように作成することができます。 (時間付き構造体の time の情報が空に設定された状態となります)
例
>> simin.signals.values = rand(11,2);
>> simin.signals.dimensions = 2;
>> simin.time = [];
なお、From Workspace 側のサンプリング時間の設定は、明示的に離散のサンプル時間を設定する必要があります。 (連続信号では対応していませんのでご注意ください)
1 Comment
Keisuke goto
on 20 Feb 2018
Categories
Find more on Sources in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!