Matlab Simulink command Generator Code Question

I am working on a matlab simulink question I need to create a code that would give me the following :Simulate the response of the system for a sequence of reference values equal to 0 rpm, 1000 rpm, 2000 rpm, 3000 rpm, 2000 rpm, 1000 rpm, and 0 rpm, separated by 1 s from each other. In simulink I have the time coming in and I need to create the code that would give me the reference values shown.

 Respuesta aceptada

Fangjun Jiang
Fangjun Jiang el 14 de Feb. de 2023

0 votos

Use the "Signal Builder" block. Signal, New, Custom... Specify time-value pairs.

Más respuestas (0)

Productos

Versión

R2021a

Etiquetas

Preguntada:

el 14 de Feb. de 2023

Respondida:

el 14 de Feb. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by