필터 지우기
필터 지우기

Info

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

dear sir, in gui i load data from pushbutton 1. the problem is i do not know how to take data from pushbutton 1 into pushbutton 2..pushbutton 2 use data from pushbutton 1,

조회 수: 1 (최근 30일)
function pushbutton1_Callback(hObject, eventdata, handles)
cd('D:\mim\dd - loop katz'); % current directory
fid = fopen(uigetfile('*.txt','Select the M-file')); %open and select file
data=textscan(fid,'%s %s %s %f %f'); % Read formatted data from text file
height=cell2mat(data(4)); %height at column 4
he=height;
tt=1:length(he);
axes(handles.axes2)
plot(tt,he)
function pushbutton2_Callback(hObject, eventdata, handles)
fs=str2num(get(handles.edit2,'String'));
y=fs; for z=1:fix(length(he)/fs); ns(z,:)=((y*(z))-y)+1:y*(z); % data by data. ex 1-9, 10-19...ect hxx=he(ns(:,:)); % import heigth on ns end hett=ns'; % time hex=hxx'; %

답변 (0개)

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by