필터 지우기
필터 지우기

saving a data as .m with double elements

조회 수: 5 (최근 30일)
feras
feras 2023년 6월 25일
댓글: feras 2023년 6월 29일
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.
feras
feras 2023년 6월 29일
Thank you very much @Jayant and @Stephen23 .

댓글을 달려면 로그인하십시오.

카테고리

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