static text did not show data

5 ビュー (過去 30 日間)
BOZHENG
BOZHENG 2023 年 1 月 19 日
編集済み: Voss 2023 年 8 月 23 日
as tilte i create GUI and I want to push buttom and then text show my data. below is my coding
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')
it show 'a' on the static text how i should change
  1 件のコメント
Misa Taguchi
Misa Taguchi 2023 年 2 月 14 日
Hi. Could you tell me more which part exactly you would like to change? or could you share the whole script you made?

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

回答 (1 件)

Voss
Voss 2023 年 8 月 23 日
set(handles.fitting1,'string',num2str(a))

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by