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