Converting a workspace file to an m-file
3 次查看(过去 30 天)
显示 更早的评论
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 个评论
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
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 LaTeX 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!