列ベクトルを時系列データに変換する方法

Simulink上のMatlabFunctionで作成した100×1の列ベクトルを時系列データに変換する方法が知りたいです. 変換した時系列データはPD制御の目標波形として使用するつもりです.

 Akzeptierte Antwort

Tohru Kikawada
Tohru Kikawada am 21 Feb. 2017

2 Stimmen

DSP System Toolboxの Unbuffer ブロックを試してみてください。
下記の回答も参考になるかもしれません。

3 Kommentare

fumito ito
fumito ito am 21 Feb. 2017
Bearbeitet: fumito ito am 21 Feb. 2017
回答ありがとうございます.urlを見ました.RandomNumberブロックは外すことはできないのでしょうか.MatlabFunction内で行列を作成し,試したら以下のようなエラーが出ました.ブロック線図は図に示すようなものです.
Error in 'untitled/Unbuffer1': All sample times must be discrete. No continuous or constant sample times are allowed.
解決策があれば教えて頂きたいです.
Tohru Kikawada
Tohru Kikawada am 21 Feb. 2017
サンプル時間が指定されていないのがエラーの原因です。 MATLAB Functionブロックのサンプル時間を下記にしたがって設定してみてください。
fumito ito
fumito ito am 23 Feb. 2017
わかりました.ありがとうございます.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Community Treasure Hunt

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

Start Hunting!

Translated by