Display the value instead of 1x1 table
66 ビュー (過去 30 日間)
古いコメントを表示
Hi guys how to display in my output the value instead of 1x1 table?
This is my matrix T:
{1×1 table} {[12544]} {1×1 table} {[12544]} {[ 0]}
{1×1 table} {[12559]} {1×1 table} {[12561]} {[ 0]}
{1×1 table} {[12722]} {1×1 table} {[12722]} {[ 0]}
{1×1 table} {[12751]} {1×1 table} {[12756]} {[ 1]}
{1×1 table} {[12789]} {1×1 table} {[12794]} {[ 2]}
{1×1 table} {[12803]} {1×1 table} {[12815]} {[ 1]}
{1×1 table} {[12875]} {1×1 table} {[12880]} {[ 4]}
{1×1 table} {[12917]} {1×1 table} {[12917]} {[ 0]}
{1×1 table} {[13763]} {1×1 table} {[13763]} {[ 0]}
{1×1 table} {[14038]} {1×1 table} {[14047]} {[ 4]}
{1×1 table} {[14092]} {1×1 table} {[14094]} {[ 2]}
{1×1 table} {[15444]} {1×1 table} {[15457]} {[ 10]}
0 件のコメント
採用された回答
Cris LaPierre
2021 年 9 月 14 日
編集済み: Cris LaPierre
2021 年 9 月 14 日
This is likely an issue with how you have assigned values to your cell array. Rather than assigne a table to a cell, assign its value. See this page on how to access data in a table.
a=5; A = table(a);
% Assigns table
C{1} = A
% Assigns value
D{1} = A.a
Better yet would be to use a table to capture all your values rather than a cell.
a=6; b=7; c=8; d=9; e=10;
data = table(a,b,c,d,e)
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Tables についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!