Char array to cell array

211 次查看(过去 30 天)
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

采纳的回答

Walter Roberson
Walter Roberson 2020-1-24
cellstr(val)
You might want
str2double( cellstr(val) )

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Type Conversion 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by