Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Mystifing Textscan Problem with a textfile

1 vue (au cours des 30 derniers jours)
Damo Nair
Damo Nair le 14 Août 2017
Clôturé : MATLAB Answer Bot le 20 Août 2021
Hi I have a text file with 2 lines ...
'anyone feel motivated the fri afternoon prior to a holiday? wanted to get lots
done... but i want jammies and judge judy... \"SIR!\" <3 her ',ppp
'seriously, do you have to rub it in maggie!!!! ',ppp
When I try to read it, tt gives me the 2nd line only & not the 1st line like this ... ''seriously, do you have to rub it in maggie!!!! ',ppp'
& my code so far is
fmt = repmat('%s', 1, 1);
fid = fopen('tp.txt', 'rt');
y = textscan(fid, fmt, 'Delimiter', '\t');
fclose(fid);
Also is it possible to separate out the ppp part into another column?
Thanks very much Damo

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by