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 CenterFile Exchange 中查找有关 Sources 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by