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 CenterFile Exchange 中查找有关 Annotations 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by