Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

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 Ansicht (letzte 30 Tage)
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'; %

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by