MATLAB Answers

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

1 view (last 30 days)
Gonzalo Romero
Gonzalo Romero on 23 Jan 2019
Edited: Gonzalo Romero on 23 Jan 2019
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


Sign in to comment.

Answers (0)

Sign in to answer this question.

Translated by