Convert Table to double vector
Ältere Kommentare anzeigen
Good morning
I try to import values from a file, matlab makes a table file from it.
Now I want to use the table values as doubles, such that I can work with it numerically.
I tried
A = table2array(Displacment_u1_u2)
But then I finish up with
A =
1×2 categorical array
-4.5031370E-03 -1.1870213E-01
These values are still not manipulatable.
When I then try
double(A)
I get the values from the 'baskets' they're in,
ans =
1 2
Thus, how do i get the categorical arrays as double values such that I can work with them?
Akzeptierte Antwort
Weitere Antworten (1)
Campion Loong
am 9 Okt. 2020
1 Stimme
Hi Ameer,
If you have R2019a and newer, you can try using readmatrix to directly read the file as numeric:
Kategorien
Mehr zu Data Type Conversion finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!