-1

我有一个像这样的单元格 <6035x1> :

1393

01:36:22,080 --> 01:36:25,482

I'm wearing women's underwear. Ha-ha-ha.

1394

01:36:25,640 --> 01:36:28,211

Oh, my God. Ha-ha-ha.

1395

01:36:28,760 --> 01:36:31,843

Stu, don't freak out,

but you need to look down.

如何写入文件?

4

1 回答 1

2

我认为最简单的方法是使用循环。

data = {'one'; 'two'; 'three'; 'four'};
h = fopen('output2.txt','w+');
n = size(data,1);

for i = 1:n
  fprintf(h, '%s\r\n', data{i});
end

fclose(h);
于 2013-10-17T12:02:49.030 回答