Info
This question is closed. Reopen it to edit or answer.
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 view (last 30 days)
Show older comments
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 Comments
Answers (0)
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!