clc;clear
[filename filepath] = uigetfile('*.*','请选择文件');
path = [filepath,filename];
[x,y,z] = textread(path,'%s%s%s','headerlines',1,'delimiter',',');
str_head = 'https://ladsweb.modaps.eosdis.nasa.gov';
str_end = y;
[m n] = size(str_end);
save_path = [filepath,filename(1:end-4),'.txt'];
fid = fopen(save_path,'w');
for i = 1:m
str_all{i,1} = [str_head,str_end{i,1}];
fprintf(fid,'%s\n',str_all{i,1});
end
fclose(fid);
matlab中uigetfile的使用
最新推荐文章于 2024-01-01 11:33:28 发布