Display the value instead of 1x1 table
65 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Riccardo Tronconi
il 14 Set 2021
Modificato: Cris LaPierre
il 14 Set 2021
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 Commenti
Risposta accettata
Cris LaPierre
il 14 Set 2021
Modificato: Cris LaPierre
il 14 Set 2021
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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Tables in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!