필터 지우기
필터 지우기

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