How to get value from nested table?

4 次查看(过去 30 天)
Diah
Diah 2012-12-13
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]?

回答(1 个)

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

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by