Conversion to cell from sym for matrix.

%I need to perform sym to cell conversion for matrix. Then I need to use set(handles...) to write matrix into uitable.
%for example;
digits(50)
a=[0.122254444 0.222222232 0.3365440003]
b=vpa(a'*a)
% b is sym. I need to write b into uitable. Like set(handles.uitable1, 'Data', b), in that, b needs to be cell. when I perform b=char(b) then b=cellstr(b), it is still impossible to use set(handles...) to write into uitable.

댓글 수: 2

Jan
Jan 2014년 3월 8일
Please do not only claim that it is "impossible", but explain, what you observe. Do you get an error message?
sermet
sermet 2014년 3월 8일
b looks like that
'matrix([[93.0, 45.0, 48.0], [222.0, 129.0, 138.0], [351.0, 213.0, 228.0]])'
in uitable.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

질문:

2014년 3월 8일

댓글:

2014년 3월 8일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by