static text did not show data

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 commentaire

Misa Taguchi
Misa Taguchi le 14 Fév 2023
Hi. Could you tell me more which part exactly you would like to change? or could you share the whole script you made?

Connectez-vous pour commenter.

Réponses (1)

Voss
Voss le 23 Août 2023

0 votes

set(handles.fitting1,'string',num2str(a))

Catégories

En savoir plus sur Characters and Strings dans Centre d'aide et File Exchange

Question posée :

le 19 Jan 2023

Modifié(e) :

le 23 Août 2023

Community Treasure Hunt

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

Start Hunting!

Translated by