Store Simulink timeseries data in txt file

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

Thank you. I tried that but it gives me "Error using fwrite. Cannot write value: unsupported class timeseries"

Sign in to comment.

Categories

Find more on Data Import and Analysis in Help Center and File Exchange

Asked:

on 24 Mar 2017

Commented:

on 24 Mar 2017

Community Treasure Hunt

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

Start Hunting!