Simulink change vector data over time

10 ビュー (過去 30 日間)
Roin Serena
Roin Serena 2020 年 10 月 7 日
回答済み: Ameer Hamza 2020 年 10 月 7 日
I need to give my model a vector data changing over time.
Trying to use signal blocks, they seem to need variables but not vectors.
Is there any way to solve the problem?

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 10 月 7 日
You can also use MATLAB function block and write the code to generate the signals: https://www.mathworks.com/help/simulink/slref/matlabfunction.html. To get information about time inside the function block, use clock https://www.mathworks.com/help/simulink/slref/clock.html.

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by