Info

此问题已关闭。 请重新打开它进行编辑或回答。

Is it possible to read from file in an enabled subsytem?

1 次查看(过去 30 天)
I am using a "From File" block in an enabled subsystem and the output is of the system corresponds to the time series from when the system is enabled. Is it possible to get the output from the beginning of the time series when the subsytem is enabled.
Eg:
Time series
t = 0 1 2 3 4 5;
x =10 20 30 40 50 60;
If the system is enabled at time 3, the output I am getting is:
y = 0 0 0 30 40 50 60 ...
I wanted to get:
y = 0 0 0 10 20 30 40 ....
Is this possible?

回答(1 个)

Fangjun Jiang
Fangjun Jiang 2020-7-14
Rather than trying to figure this out, why don't you just read it from file, use the enable signal or trig signal to switch between 0 and the data from the file.

产品


版本

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by