How to get value from nested table?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I run this command boundaryindx{dtbung,2}(1,1) and get this result [230.605758582503]. How if I want the result is only 230.605758582503, not [230.605758582503]?
0 Kommentare
Antworten (1)
John Petersen
am 14 Dez. 2012
boundaryindx appears to be a cell array. To convert to a number, one way is,
cell2mat(boundaryindx{dtbung,1}(1,1))
0 Kommentare
Siehe auch
Kategorien
Mehr zu Tables 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!