Convert cell into double
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
{'22,1'}
{'22,1'}
{'21,8'}
{'22,0'}
I hae extrated those data from TXT file. I tried to use
% T.(i) = str2double(T{:,i});
no working
I tried to use
str2num(char({'21,8'}))
I want instead 21.8 and repeat the format for the whole colonn
0 Kommentare
Antworten (1)
David Hill
am 23 Nov. 2022
Try using the following.
m=readmatrix('yourData.txt','DecimalSeparator',',');
0 Kommentare
Siehe auch
Kategorien
Mehr zu Resizing and Reshaping Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!