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

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

 採用された回答

Tohru Kikawada
Tohru Kikawada 2017 年 2 月 21 日

2 投票

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

3 件のコメント

fumito ito
fumito ito 2017 年 2 月 21 日
編集済み: fumito ito 2017 年 2 月 21 日
回答ありがとうございます.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 2017 年 2 月 21 日
サンプル時間が指定されていないのがエラーの原因です。 MATLAB Functionブロックのサンプル時間を下記にしたがって設定してみてください。
fumito ito
fumito ito 2017 年 2 月 23 日
わかりました.ありがとうございます.

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeIntroduction to Installation and Licensing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by