saving a data as .m with double elements

3 次查看(过去 30 天)
Hİ everyone,
How to save a dataset (like .csv) as .m workspace with all elements as double into this folder ?
THANKS

回答(1 个)

Jayant
Jayant 2023-6-25
编辑:Jayant 2023-6-25
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 个评论
Jayant
Jayant 2023-6-27
Yes, we can also use READTABLE. @Stephen23 thank you for the suggestion.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Database Toolbox 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by