필터 지우기
필터 지우기

Converting a workspace file to an m-file

조회 수: 5 (최근 30일)
Sergio
Sergio 2024년 2월 27일
댓글: Stephen23 2024년 2월 28일
Hi, I have looked through https://se.mathworks.com/help/matlab/workspace.html for some rapid method to save a table -file in the workspace into an m-file stored in nthe MATLAB folder.
I have
T1 = readtable('data.xlsx');
and by loading it, it appears in nthe Workspace. However, I would also like to store the 5x2 matrix table file into an own m-file. How can that be done?
Thanks!
  댓글 수: 3
Sergio
Sergio 2024년 2월 28일
@Stephen23 because I was going to use it as input for Curve fitter package, by opening it from the folder. Just to try the "dummy" version of clicking with mouse instead of running with a program.
Stephen23
Stephen23 2024년 2월 28일
"because I was going to use it as input for Curve fitter package, by opening it from the folder. Just to try the "dummy" version of clicking with mouse instead of running with a program. "
I don't see why that stops you from loading/importing the data in a script/function.

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

답변 (1개)

Andreas Goser
Andreas Goser 2024년 2월 28일
While I also wonder about the reason (See comment by Stephen23), one conceptual idea is to export into an ASCII format, or table format and then change the file extension.

카테고리

Help CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by