How to get value from nested table?

5 vues (au cours des 30 derniers jours)
Diah
Diah le 13 Déc 2012
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]?

Réponses (1)

John Petersen
John Petersen le 14 Déc 2012
boundaryindx appears to be a cell array. To convert to a number, one way is,
cell2mat(boundaryindx{dtbung,1}(1,1))

Catégories

En savoir plus sur Tables dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by