I have a array
stop={'a', 'about', 'above', 'the'};
I want to write this to a text file like
a about above the
or
a about above the
i tried many commands like fwrite,fprintf,dlmwrite,but could not get like this
kindly assist

 Akzeptierte Antwort

Orion
Orion am 14 Okt. 2014
Bearbeitet: Orion am 14 Okt. 2014

1 Stimme

Hi,
you want something like :
stop={'a', 'about', 'above', 'the'};
fid = fopen('MyFile.txt','wt');
for i = 1:length(stop)
fprintf(fid,'%s ',stop{i});
end
fclose(fid);

Weitere Antworten (0)

Kategorien

Mehr zu Text Analytics Toolbox finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 14 Okt. 2014

Bearbeitet:

am 14 Okt. 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by