Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

loading a text file to GUI need help

조회 수: 1 (최근 30일)
Rashid Hussein
Rashid Hussein 2017년 11월 17일
마감: MATLAB Answer Bot 2021년 8월 20일
iam trying to load a text file to gui to analyze the arrays in by using LOAD function but it keep showing error - is the load function correct or the are other function to load the text files to GUI????????
here is the begining of my code
load instru.txt
channels = instru(:,1);
totcounts = instru(:,2);
t=strnum(get(handles.edit1,string'));
x1=strnum(get(handles.edit2,string'));
x2=strnum(get(handles.edit3,string'));
y1=strnum(get(handles.edit4,string'));
y2=strnum(get(handles.edit5,string'));
totcounting = totcounts/t;
m=(y2 - y1)/(x2 - x1);
b=(y1-m*x1);
for V= 1 : size(channels)
enrgy = m*channels + b;
end
enrgy =1:200;
plot(handles.axes1,enrgy,totcounting);
  댓글 수: 1
Walter Roberson
Walter Roberson 2017년 11월 17일
Please show the first few lines of instru.txt

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by