Read .txt file into a matrix
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
red981
am 30 Nov. 2020
Bearbeitet: red981
am 30 Nov. 2020
Hi!
I would like to ask for suggestions on how could I read the data downloaded in a .txt document from:
into a 55 x 55 double in Matlab.
Thanks!
/R
0 Kommentare
Akzeptierte Antwort
Ameer Hamza
am 30 Nov. 2020
Try this
M = readmatrix('MLS-Aura_L2AK-O3-LAT70N_v04-2x_0000d000.txt', 'NumHeaderLines', 22);
M = reshape(M.', 60, []).';
M = M(:, 1:55);
4 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Shifting and Sorting Matrices 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!