Overwriting a vector to a specific location into CSV file
13 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Jake
am 13 Jul. 2015
Kommentiert: Jake
am 15 Jul. 2015
Hi MATLAB experts,
I have csv file here, and want to overwrite a vector in a specific column 'H' and row '4' ('H4') in the spreadsheet called 'sheet1' (while without deleting other data in the same tab). For example, I have a vector as follows:
m = {'a';'b';'c'}
Please teach me cool stuff!! Thanks for any help you can provide in advance.
Best Regards, Jake
0 Kommentare
Akzeptierte Antwort
Abhishek Pandey
am 15 Jul. 2015
Bearbeitet: Abhishek Pandey
am 15 Jul. 2015
Hi Jake! I understand you want to overwrite a vector in a specific column in a CSV file spreadsheet. You can do this using the xlswrite function.
For example, if you want to write the vector ‘m’ to column ‘H4’ in a spreadsheet called ‘sheet1’, you can use the following code:
xlswrite('sheet1.csv', m, 1, 'H4');
Hope this helps!
- Abhishek
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!