办公室不咋隔音,这鸟人一天到晚打电话,一个电话一小时,而且最可恨还用免提,大 家遇到这种情况杂办啊,严重影响我工作!谢谢给点意见吧。 ★ Sent from iPhone App: iReader Mitbbs Lite 7.28
f*t
2 楼
父母2011年办理的离婚手续,但是关系一直都还好,也都没有再婚。 这次我想邀请他们一起过来参加我的婚礼,可以同时去签证么?还是最好分别单独去签? 还有他们的行程应该是一致的,我想着路上也有个照应,在填DS160表的时候需要说明 是travel together么?就是在回答“Are you traveling with other person?”这个 问题是应该怎么填? 谢谢!
谢water 和 wuyi。 我的问题可能不在textscan,应该是loop上太菜了(原谅我是新手,哈哈) 我还是考虑吧文件贴出来,请认识的帮看看,run run。 data file: https://www.dropbox.com/s/83nd46ny7gunyhv/data.csv test code: https://www.dropbox.com/s/vvzfw6uhhgkekbd/test.m ————————————————————————————————————- test code copy:(我两个方法都出错了,虽然能够正常读入) %% input 1 fid_t = fopen(... 'C:\**\data.csv', ... % 'r'); while ~feof(fid_t) temp1 = fgetl(fid_t); temp2 = regexprep(temp1, '"', ''); line = csv2cell(temp2);
if strcmp(line{1}, 'DataType:') if strcmp(line{2}, 'Net') O2=line{2}; fgetl(fid_t); NET=[] while ~feof(fid_t) tp1 = fgetl(fid_t); tp2 = regexprep(tp1, '"', ''); line = csv2cell(tp2); NET=[NET; line]; if isempty(line) break; end
end end end end; fclose(fid_t); %%---------------------------------------------------------- %% input 2 fid_t = fopen(... 'C:\**\data.csv', ... % 'r'); while ~feof(fid_t) temp1 = fgetl(fid_t); temp2 = regexprep(temp1, '"', ''); line = csv2cell(temp2);
if strcmp(line{1}, 'DataType:') if strcmp(line{2}, 'Net') O2=line{2}; fgetl(fid_t); NET={};
【在 w********l 的大作中提到】 : Would this help? : http://www.mathworks.com/products/matlab/examples.html?file=/pr : I see many options when googling 'use textscan to read a file in matlab', : maybe you have already done that, unfortunately I don't know a thing about : matlab, :)
Thanks waterstill, the code from the link you provided rocks!!! will post my code later. Thanks again!!
about
【在 w********l 的大作中提到】 : Would this help? : http://www.mathworks.com/products/matlab/examples.html?file=/pr : I see many options when googling 'use textscan to read a file in matlab', : maybe you have already done that, unfortunately I don't know a thing about : matlab, :)