Change the name of a column in one gui from another

1 回表示 (過去 30 日間)
Jared
Jared 2013 年 3 月 21 日
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'
  1 件のコメント
Walter Roberson
Walter Roberson 2013 年 3 月 21 日
Please show how you created "data".

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeWeb Services についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by