Uitable and vpa
조회 수: 17 (최근 30일)
이전 댓글 표시
Hi, I have problem with my code: vpa works for "result", but I need show result in the uitable1, but for "res" command vpa doesn't work.
matrix=[A B;C D]
a=simple(matrix\X);
b=sym(a)
result=vpa(b,4)
f=size(result);
for i=1:f(1);
for j=1:f(2);
res(i,j)=cellstr(char(result(i,j)));
end
end
set(handles.uitable1,'Data',res);
Please help
댓글 수: 0
채택된 답변
Sean de Wolski
2012년 3월 6일
Instead of char(result), use num2str() or sprintf()
doc num2str
doc sprintf
and for the comparison,
doc char
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!