Symbolic object and uitable
조회 수: 3 (최근 30일)
이전 댓글 표시
Hi,
I have question and problem also with program in Matlab-guide.
My program works only with numbers 1,2,3......., but I need also insert to the uitable symbolic objects and calculate with symbolic objects also.
I want use uitable, and uitable should present matrix named for example a. I need insert numbers ” 1, 2, 3,…” and symbolic objects "a, b,c,….” to the table.
Program is doing multiplication of two matrix.
Please, can you help my?
PS:
Here is example in M-file. i3 = sym(‘i3′,’real’); a=[ 0 0 i3; 1 2 3]; b=[2 2; 2 2; 2 2]; c=a*b;
But I need something like this in GUIDE with uitable.
If you have better idea, how could I fill the matrix, please let me know.
댓글 수: 0
답변 (1개)
Walter Roberson
2011년 11월 1일
You cannot put symbolic objects in a uitable.
If you have a uitable entry which you intend to be able to hold either a number or a symbol, then that uitable column must be set to be of character type, and any place that you suspect you may have a number, you have to check and convert the string representation of the number to a numeric value.
I have indicated both of the above facts to you in previous threads.
참고 항목
카테고리
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!