How to import data from text file with separated with brackets, commas and tab delimited?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Alex
am 19 Apr. 2016
Beantwortet: Bharath Rangaswamy
am 21 Apr. 2016
I have a text file where the data looks like this (white spaces are a single tab)
(-6.534305227e-05,2.698729784e-19) (-0.0003351994194,-0.0002312559211)
How do I import this into MatLab so that it looks like this
1.0e-03 *
-0.0653 0.0000
-0.3352 -0.2313
Have tried using textread and textscan but have had no success.
Thanks
0 Kommentare
Akzeptierte Antwort
Bharath Rangaswamy
am 21 Apr. 2016
Hi Alex,
You can use 'Import Data'(UI) and here you have drop down to choose delimiters. In this drop down you also have an option for custom delimiters. And you can also generate a script if you want.
-Bharath
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Text Files finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!