Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

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 vue (au cours des 30 derniers jours)
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'; %

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by