Creating matrixes in .mat file
Show older comments
I want to create a .mat file and inside the .mat file, there are variables that represent individual matrices. So lets say in the .mat file I have a, b, c, d. And each a, b, c, d has its own matrix and I can add contents into each matrix. Is there a way to do this? thanks
1 Comment
You can place as many individual elements in a .mat file as memory permits. Those can be scalars, structures, cell arrays, tables, etc...
Please read the documentation on save to see how to put several variables in a .mat file.
doc save
Accepted Answer
More Answers (1)
Victor
on 25 Jun 2014
0 votes
3 Comments
From the documentation:
'-append'
Keyword to add data to an existing file. For MAT-files, -append adds
new variables to the file or replaces the saved values of existing
variables with values in the workspace. For ASCII files, -append adds
data to the end of the file.
Please place your post as a comment since it is not really an answer.
Victor
on 25 Jun 2014
Victor
on 25 Jun 2014
Categories
Find more on Workspace Variables and MAT Files in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!