How to read first column containing names of shapefiles from data matrix?
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Devendra
am 8 Apr. 2024
Kommentiert: Devendra
am 8 Apr. 2024
I want to read excel csv file which is attached here using readmatrix matlab command. I want to use only readmatrix matlab command to read the first column containing names of shape files since remaining data has already been extracted and analysed. I need the names of shape files to write in to final output file.
Please suggest me how to do it.
Deva
0 Kommentare
Akzeptierte Antwort
Ayush Modi
am 8 Apr. 2024
Bearbeitet: Ayush Modi
am 8 Apr. 2024
Hi Devendra,
You can achieve this using additional import options opts in the readmatrix function.
opts = detectImportOptions('sample.csv');
opts.SelectedVariableNames = 1;
shapefileNames = readmatrix("sample.csv", opts);
Please refer to the following MathWorks documentation for more information on the import options of "readmatrix" function:
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Import and Analysis 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!