How do I convert symbolic values to numerical for uitable ?
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Doug Leaffer
am 1 Dez. 2024
Kommentiert: Walter Roberson
am 3 Dez. 2024
How do I Convert symbolic values to numerical for uitable ? The table itself, tbl displays fine, but I want to display the same data into a uitable. The last column is symbolic
load datafile.mat
format bank
tbl = table(t',h', round(vpa(v),2)', 'VariableNames',["Time(s)", "Height(ft)","Velocity(ft/s)"])
fig = uifigure;
uit = uitable(fig,"Data",tbl)
Akzeptierte Antwort
Torsten
am 1 Dez. 2024
syms x
f = x^2-2;
xsol = solve(f==0)
class(xsol)
xvpa = vpa(xsol)
class(xvpa)
xnum = double(xsol)
class(xnum)
1 Kommentar
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!