Write Data to txt file from Excel
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Rounak Saha Niloy
am 17 Mär. 2022
Bearbeitet: Arif Hoq
am 17 Mär. 2022
I have some data in cell D3:D10 in an excel file. I want to write these particular data in a txt file. How do I do that?
2 Kommentare
Walter Roberson
am 17 Mär. 2022
Bearbeitet: Walter Roberson
am 17 Mär. 2022
Is it numeric data?
Is it required that the MATLAB program instruct Excel to write the data, or would it instead be acceptable to read the data into MATLAB and have MATLAB write the data?
Akzeptierte Antwort
Arif Hoq
am 17 Mär. 2022
Bearbeitet: Arif Hoq
am 17 Mär. 2022
try this:
A=readtable('data.xlsx','ReadvariableName',false);
writetable(A,'myfile.txt')
or
B=readmatrix('data.xlsx');
writematrix(B,'myfile2.txt')
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Spreadsheets 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!