Info

This question is closed. Reopen it to edit or answer.

How to create one signal given a time and a value vector in Simulink?

1 view (last 30 days)
Hello,
I would like to generate a signal given a value and a time vector as inputs in Simulink. I want to change that vector during the simulation so I can´t use the Repeating Sequence Interpolated block. Given as inputs
time = [0, 1, 2, 3];
values = [2, 3, 5, 6];
I want to get a signal as output and i want to modify it during runtime.
I could save the variables in the workspace and then import them using the From Workspace block but I want to know if there is an easier and better solution to my problem
Thanks!

Answers (0)

Community Treasure Hunt

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

Start Hunting!