numerical array is being saved as string

1 次查看(过去 30 天)
Em
Em 2022-1-14
回答: KSSV 2022-1-14
I have a numerical array which is saved somehow as a string - when I get Matlab to return the variable, all the numbers are in speechmarks. Is there a way to remove this?
Cheers

回答(1 个)

KSSV
KSSV 2022-1-14
Read about str2double and str2num.

类别

Help CenterFile Exchange 中查找有关 Cell Arrays 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by