Change the name of a column in one gui from another
5 views (last 30 days)
Show older comments
OBJECTIVE
I am trying to change the column names of a table named 'data' in the main gui from a sub-gui to the value of 'result' which should be a string.
CODE
result=strcat('(',char(B(1)),'^',num2str(cell2mat(PWR(itn,1))),')*(',char(B(2)),'^',num2str(cell2mat(PWR(itn,2))),')*(',char(B(3)),'^',num2str(cell2mat(PWR(itn,3))),')*',char(B(3+itn)));
pass_data{itn}=result
hMainGui = getappdata(0,'data');
set(hMainGui, 'ColumnName', pass_data);
ERROR
Error using ==> set Conversion to double from cell is not possible.
Note: The value of pass_data is equal to:
'(b^1)*(c^2)*(d^0)*a' '(b^1)*(c^2)*(d^3)*e'
Answers (0)
See Also
Categories
Find more on LaTeX in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!