Uitable and vpa
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
Sean de Wolski
le 6 Mar 2012
Instead of char(result), use num2str() or sprintf()
doc num2str
doc sprintf
and for the comparison,
doc char
4 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Scope Variables and Generate Names dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!