for ii=1:num_load_file %逐个读入载荷工况数据
clear load_name2 load loar_r load_c stress_time_1 stress_time_2 A B B1 B2 C D range_1 avg_1 range_2 avg_2 D3 D30 D5 D50
load_name2=[load_name{ii},'.txt'];
fid=fopen(fullfile(pathname_inp,load_name2));
load=cell2mat(textscan(fid,'%f%f%f%f%f%f%*[^\n]','headerlines',num_loadr_star -1));
[load_r,load_c]=size(load);
下面是报错>> stress_time_generate
错误使用 textscan
文件标识符无效。使用 fopen 生成有效的文件标识符。
出错 stress_time_generate (line 41)
load=cell2mat(textscan(fid,'%f%f%f%f%f%f%*[^\n]','headerlines',num_loadr_star -1));
请问这是什么原因,怎么解决?