How do I convert symbolic values to numerical for uitable ?
조회 수: 2 (최근 30일)
이전 댓글 표시
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)
채택된 답변
Torsten
2024년 12월 1일
syms x
f = x^2-2;
xsol = solve(f==0)
class(xsol)
xvpa = vpa(xsol)
class(xvpa)
xnum = double(xsol)
class(xnum)
추가 답변 (0개)
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!