How do I import a matrix with (.matrix) extension into my MATLAB script code?

回答 (1 件)

Image Analyst
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.

カテゴリ

質問済み:

M
M
2021 年 11 月 21 日

回答済み:

2021 年 11 月 21 日

Community Treasure Hunt

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

Start Hunting!

Translated by