フィルターのクリア

Display the value instead of 1x1 table

45 ビュー (過去 30 日間)
Riccardo Tronconi
Riccardo Tronconi 2021 年 9 月 14 日
編集済み: Cris LaPierre 2021 年 9 月 14 日
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]}

採用された回答

Cris LaPierre
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
C = 1×1 cell array
{1×1 table}
% Assigns value
D{1} = A.a
D = 1×1 cell array
{[5]}
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)
data = 1×5 table
a b c d e _ _ _ _ __ 6 7 8 9 10

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTables についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by