Char array to cell array

208 ビュー (過去 30 日間)
RN
RN 2020 年 1 月 24 日
回答済み: Walter Roberson 2020 年 1 月 24 日
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 Center および File ExchangeData Type Conversion についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by