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 个评论
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!