필터 지우기
필터 지우기

static text did not show data

조회 수: 1 (최근 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에서 Data Import and Export에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by