How do I convert symbolic values to numerical for uitable ?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Doug Leaffer
el 1 de Dic. de 2024
Comentada: Walter Roberson
el 3 de Dic. de 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)
3 comentarios
Walter Roberson
el 3 de Dic. de 2024
uit = uitable(fig, "Data", tbl, "ColumnFormat", "bank")
Respuesta aceptada
Torsten
el 1 de Dic. de 2024
syms x
f = x^2-2;
xsol = solve(f==0)
class(xsol)
xvpa = vpa(xsol)
class(xvpa)
xnum = double(xsol)
class(xnum)
Más respuestas (0)
Ver también
Categorías
Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!