Borrar filtros
Borrar filtros

saving a data as .m with double elements

5 visualizaciones (últimos 30 días)
feras
feras el 25 de Jun. de 2023
Comentada: feras el 29 de Jun. de 2023
Hİ everyone,
How to save a dataset (like .csv) as .m workspace with all elements as double into this folder ?
THANKS

Respuestas (1)

Jayant
Jayant el 25 de Jun. de 2023
Editada: Jayant el 25 de Jun. de 2023
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')
You may refer this documentation to try other methods of using save() function.
  4 comentarios
Jayant
Jayant el 27 de Jun. de 2023
Yes, we can also use READTABLE. @Stephen23 thank you for the suggestion.
feras
feras el 29 de Jun. de 2023
Thank you very much @Jayant and @Stephen23 .

Iniciar sesión para comentar.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by