'To workspace' loss of data

2 views (last 30 days)
DARSHAN N KANNUR
DARSHAN N KANNUR on 9 Jun 2020
Commented: Kai Huong on 5 May 2023
I have 765 inputs to the simulink and i have set simulation time to 765 but when I use 'To workspace' blocking I am getting array of only 51 output data in workspace. Help me out.
  1 Comment
Kai Huong
Kai Huong on 5 May 2023
You have to change your "Sample Time" to fit your data interval, do not keep the default (-1). You can read the examples in this link http://www.ece.northwestern.edu/local-apps/matlabhelp/toolbox/simulink/slref/toworkspace.html to be clear.

Sign in to comment.

Answers (1)

Steven Lord
Steven Lord on 9 Jun 2020
Is the "Limit data points to last" parameter described on this documentation page set to a smaller value than its default of Inf?

Products

Community Treasure Hunt

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

Start Hunting!