create a custom parametric signal

4 vues (au cours des 30 derniers jours)
Michael
Michael le 30 Oct 2022
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

Réponses (1)

Shivansh
Shivansh le 2 Nov 2022
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!

Catégories

En savoir plus sur Simulink dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by