English 中文(简体)
材料装载空白文档中的负荷指挥
原标题:load command in matlab loading blank file

I am loading a file in matlab, but it is being loaded as an empty variable.

positive    0x0    []

正在使用

 load positive.txt

but the file is not empty. Is the something am wrong? P.S. I have loaded other files from the same folder successfully. Also I tried to rename it to positive.dat but that also didn t work. And it was an excel file that I saved as an text file.

以及档案、复印和复制的第一对夫妇条目;过去

04  10  19
04  10  36
04  10  28
04  16  16
04  14  01
04  20  21
04  20  06
04  20  28
04  13  14
04  13  17
04  13  02
04  01  16
最佳回答

仅对MAT-files(档案延期<代码>.mat)或MATLAB格式保存的ASCII文档进行指挥,通常使用<代码>save的指令。 对于所有其他档案格式,你应使用其他指挥系统。

For text files you can use fopen, fscanf, fclose. For binary files you can use fopen, fread, fclose. fopen opens the file for reading and/or writing, fscanf or fread read data from file (fscanf reads text, fread binary data) and then fclose closes the file.

关于Excel文档,您可使用xlsread

问题回答

暂无回答




相关问题
Is There Any Way Without File.ReadAllText?

As I love to develop file I/O applications and my new development platform is Windows Mobile. Is there any way to read all the file, without using File.ReadAllText? Because Windows Mobile doesn t ...

File paths in Java (Linux)

I have created a Java application that loads some configurations from a file conf.properties which is placed in src/ folder. When I run this application on Windows, it works perfectly. However when I ...

How do I create a string using a loop variable in MATLAB?

I have a loop like this: for i=1:no %some calculations fid = fopen( c:\out.txt , wt ); %write something to the file fclose(fid); end I want data to be written to different files like ...

热门标签