2021年4月28日星期三

I get a frustrating error with dlmread MATLAB, it cannot read my input file

I want to read a bunch of files inside a loop function in MATLAB, but when I try the following code:

j = (i * 2000000);  A = dlmread('gr_at_0.l_%d', j);  

I get the following error:

Error using sprintf  Invalid format.    Error in dlmread (line 71)      delimiter = sprintf(delimiter); % Interpret \t (if necessary)    Error in RDF (line 15)      A = dlmread('gr_at_0.l_%d', j);  

the following file is one of the many files that I want to read:

'''gr_at_0.1_0'''

I would appreciate any comment.

https://stackoverflow.com/questions/67309653/i-get-a-frustrating-error-with-dlmread-matlab-it-cannot-read-my-input-file April 29, 2021 at 08:47AM

没有评论:

发表评论