Hi,
I am trying to pass a piecewise-constant vector to my Simulink model but I do not know how to generate and use it in Simulink. To be more clear, I want to pass a vector like in the figure below containing the time steps and the values of "u" in each time step. I would really appreaciate it if someone could help me.
Untitled.png

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2019년 2월 4일

0 개 추천

There are many ways. The easiest is to define time t=[t1, t2,...t5] and a=[a1,a2,...a5] in workspace and then use the "From Workspace" block, specify data as [t;a].' and do not intoperlate data.

카테고리

제품

릴리스

R2016a

태그

질문:

2019년 2월 1일

답변:

2019년 2월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by