How do I import a matrix with (.matrix) extension into my MATLAB script code?
2 次查看(过去 30 天)
显示 更早的评论
How do I import a matrix with (.matrix) extension into my MATLAB script code?
0 个评论
回答(1 个)
Image Analyst
2021-11-21
Unfortunately you forgot to attach the file so we really don't know and will have to start guessing. For a start try this
m = readmatrix('your file.matrix');
If that doesn't work try importdata(), readcell(), or worst case open with fopen() and read out line-by-line with fgetl() and parse each line to get the things you need from the line.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!