Info
This question is closed. Reopen it to edit or answer.
Is it possible to read from file in an enabled subsytem?
1 view (last 30 days)
Show older comments
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?
0 Comments
Answers (1)
Fangjun Jiang
on 14 Jul 2020
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.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!