How to search for header name and only pull that column as an array you can multiply
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
new2matlab
am 3 Aug. 2020
Kommentiert: new2matlab
am 3 Aug. 2020
I have a table that includes my full csv (with headers) and I am hoping to search for a specific header name (cellSize) and pull that data into a structure I can multiply.
0 Kommentare
Akzeptierte Antwort
dpb
am 3 Aug. 2020
If you loaded the .csv into a table with headers that are variable names, you don't need to search nor "pull" data -- just reference it directly.
newvar=t.cellSize*pi; % multiply cellSize table "t" variable by pi; store in array
t.newvar=t.cellSize*pi; % multiply cellSize table "t" variable by pi; store in new var in table "t"
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Tables 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!