Store Simulink timeseries data in txt file

4 views (last 30 days)
Alicia Roder
Alicia Roder on 24 Mar 2017
Commented: Alicia Roder on 24 Mar 2017
Is it possible to store Simulink timeseries data in a .txt file? I have imported the Simulink data into workspace but I only manage to save the data as .mat file using
>> save(filename, 'data')
Thank you!

Answers (1)

ES
ES on 24 Mar 2017
Edited: ES on 24 Mar 2017
timeseries is a special data class. It is best written in a mat file. If you just need the Data, you can Try fwrite..
doc fwrite
  1 Comment
Alicia Roder
Alicia Roder on 24 Mar 2017
Thank you. I tried that but it gives me "Error using fwrite. Cannot write value: unsupported class timeseries"

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!