|
|
[求助]
撰写了一段程序,textscan运行时提示文件无法打开,急急急!!!!
撰写了一段程序,运行时提示文件无法打开,急急急!!!!
clear all;
close all;
fprintf('Working...>\n')
wssx_line = [73260 121729]; % specify the line number of wss_x component data located
wssy_line = [121731 170200]; % specify the line number of wss_y component data located
wssz_line = [170202 218671]; % specify the line number of wss_z component data located
row = [1 5];
m = wssx_line(2)-wssx_line(1)+1;
n = row(2)-row(1)+1;
[FileName,PathName] = uigetfile('*.dat','Select the dat files','MultiSelect', 'on');
k = length(FileName);
fprintf('>All the Dat files has read completely>working...\n\n');
for ii = 1:k
fid(ii) = fopen( FileName{ii});
temp = textscan(fid(ii),'%s %s %s %s %s',1000000,'bufSize', 265000000);
fclose(fid(ii));
for i = 1:m
for j = 1:n
wss_temp_x(i,j,ii) = str2num(temp{j+row(1)-1}{i+wssx_line(1)-1}); % wall shear stress_x
wss_temp_y(i,j,ii) = str2num(temp{j+row(1)-1}{i+wssy_line(1)-1}); % wall shear stress_y
wss_temp_z(i,j,ii) = str2num(temp{j+row(1)-1}{i+wssz_line(1)-1}); % wall shear stress_z
% uds_temp(i,j,ii) = str2num(temp{j+row(1)-1}{i+uds_line(1)-1}); % uds_line
end
end
wss_x(1,:,ii) = reshape(wss_temp_x(:,:,ii)',1,m*n); % Reshape wall shear stress_x
wss_y(1,:,ii) = reshape(wss_temp_y(:,:,ii)',1,m*n); % Reshape wall shear stress_y
wss_z(1,:,ii) = reshape(wss_temp_z(:,:,ii)',1,m*n); % Reshape wall shear stress_z
% uds(1,:,ii) = reshape(uds_temp(:,:,ii)',1,m*n); % Reshape uds temp
end
![撰写了一段程序,textscan运行时提示文件无法打开,急急急!!!!]()
截图00.jpg |
» 猜你喜欢
售SCI一区文章,我:8.O.55.1.O.54,科目齐全,可伽急
已经有3人回复
售SCI文章,我:8O5.5.1.O.54,科目齐全,可+急
已经有3人回复
售SCI一区文章,我:8.O.551.O.5.4,科目全,可伽急
已经有3人回复
售SCI文章,我:8O5.5.1.O.54,科目齐全,可+急
已经有3人回复
售SCI一区T0P文章,我:8O.55.1.O.5.4,科目齐全,可+急
已经有5人回复
售SCI-T0P文章,我:8O.5.5.1.O.54,科目齐全,可+急
已经有7人回复
上海工程技术大学 激光智能制造课题组 2027级博士研究生招生
已经有6人回复
课题组招2027级博士 上海工程技术大学 激光智能制造方向
已经有6人回复
师弟论文见刊大半年才想起来申请专利,还能抢救一下吗?
已经有4人回复
有机合成以后会不会被AI改变?做科研的虫友怎么看
已经有8人回复
|