create a custom parametric signal

1 回表示 (過去 30 日間)
Michael
Michael 2022 年 10 月 30 日
回答済み: Shivansh 2022 年 11 月 2 日
I have to create a signal input that is parametric, from t= 0 to t= 100 , where the signal is a ramp at the start , constant after 40 seconds and another decreasing ramp after that. I need to pass this signal to a transfter funciton in order to analyse the response. how would I go about doing this ? I made a matlab script to generate the data points into a vector and then imported the vector to simulink using to workspace command but then I got an error about the vector dimension.
Is there an intuitive way to solve this problem?
thank you

回答 (1 件)

Shivansh
Shivansh 2022 年 11 月 2 日
To my understanding you are trying to import data from Matlab workspace to Simulink using “to workspace” block.
Instead of using “To workspace” block you should use “From workspace” block to use data from Matlab Workspace. Kindly refer to the documentation of “From workspace” block which is attached below for better understanding-
You can refer to the documentation attached below to look for the different ways in which you can load signal for simulation-
Hope this helps!

カテゴリ

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