extract a number from 1*1 cell
70 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
alpedhuez
am 15 Dez. 2020
Kommentiert: Stephen23
am 16 Dez. 2020
I have
tbl2 = 1*1 cell array
{[1.29]}
Name Size Bytes Class Attributes
tbl2 1x1 112 cell
How can one extract a double from this cell array?
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 15 Dez. 2020
value = tbl{1} % Extract 1.29 from the cell
I think you should really read the FAQ so you get a good intuitive feel for how to use cell arrays and when to use braces, brackets, and parentheses:
1 Kommentar
Stephen23
am 16 Dez. 2020
Siehe auch
Kategorien
Mehr zu Construct and Work with Object Arrays 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!