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

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

 Accepted Answer

Tohru Kikawada
Tohru Kikawada on 21 Feb 2017

2 votes

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

3 Comments

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

Sign in to comment.

More Answers (0)

Categories

Community Treasure Hunt

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

Start Hunting!