Char array to cell array

218 views (last 30 days)
RN
RN on 24 Jan 2020
Answered: Walter Roberson on 24 Jan 2020
How to convert character array to cell array? I have the values as follows:
val =
' -4.310.00
-4.390.00
-4.480.00
-4.570.00
-4.660.00
-4.750.00
-4.830.00
-4.920.00
-5.010.00
-5.100.00
-5.190.00
-5.270.00
-5.360.00
-5.450.00
-5.540.00
-5.620.00
-5.710.00
-5.800.00
-5.890.00
-5.980.00
-6.060.00
-6.150.00
-6.240.00
-6.330.00
-6.420.00
-6.500.00
-6.590.00
-6.680.00

Accepted Answer

Walter Roberson
Walter Roberson on 24 Jan 2020
cellstr(val)
You might want
str2double( cellstr(val) )

More Answers (0)

Categories

Find more on Data Type Conversion in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!