saving a data as .m with double elements
Mostra commenti meno recenti
Hİ everyone,
How to save a dataset (like .csv) as .m workspace with all elements as double into this folder ?
THANKS
Risposte (1)
You can use save() function to save the dataset into your workspace.
Here are the steps to do it:
1) Create a new structure to store your dataset.
data = struct('dataset', dataset)
2) Use save function :
save(['folder_path' 'workspace.mat'], 'data')
4 Commenti
feras
il 25 Giu 2023
Stephen23
il 25 Giu 2023
"the file is .csv file and i want to use it in Matlab by saving as .m workspace with all elements as double into this folder."
Why not just use READTABLE directly on the CSV file?
So far there does not seem to be any good reason for duplicating the data in an Mfile.
Jayant
il 27 Giu 2023
feras
il 29 Giu 2023
Categorie
Scopri di più su Database Toolbox in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!