フィルターのクリア

Unrecognized property string for class Panel

15 ビュー (過去 30 日間)
BOZHENG
BOZHENG 2023 年 1 月 17 日
コメント済み: BOZHENG 2023 年 1 月 18 日
as title
I created the gui which hane one bottom and panel , I want to show data on the panel(name:fitting1)
above is my coding--------------------------------------
function pushbutton2_Callback(hObject, eventdata, handles)
data=xlsread('data1.xlsx');
num1=xlsread('data1.xlsx','A131:A387');
num2=xlsread('data1.xlsx','B131:B387');
x=num1;
y=num2;
fitobject=fit(x,y,'poly1');
a=coeffvalues(fitobject);
set(handles.fitting1,'string','a')
but command window said 'Unrecognized property string for class Panel''
how should i do ? I want someone help

採用された回答

Steven Lord
Steven Lord 2023 年 1 月 17 日
Since handles.fitting1 is a Panel object according to the error message, let's look at the list of Panel properties and see if String is listed among them. It is not. The only three instances of "string" on that page are in the descriptions of allowed types for the Title, Tag, and Tooltip properties. Did you intend to set one of those properties (perhaps the Title?) or a String property of one of the Children of the Panel?
  1 件のコメント
BOZHENG
BOZHENG 2023 年 1 月 18 日
well i saw the inspector , but i edit the tag and tittle ,so I do not really how i should check can you step by step tell me?

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by