matlab中如何按行读取txt文件?

如题所述


matlab读取txt文件步骤如下:

MATLAB® Toolstrip: On the Home tab, in the Variable section, click Import Data.select file.
然后选定数据区域,在选择的数据区域的时候选择数据类型,这里我们选的是数值型。例如我们要的是A,B,C,D,E和R列

<img src="https://pic1.zhimg.com/50/138c370aeedb374a37ade26a30207078_hd.jpg" data-rawwidth="483" data-rawheight="459" class="origin_image zh-lightbox-thumb" width="483" data-original="https://pic1.zhimg.com/138c370aeedb374a37ade26a30207078_r.jpg">

我们这样就得到一个名为test矩阵。之后再把test矩阵写入好了就可以了。

温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答