Représentation fréquentielle d'un signal
dans mon interface graphique j'ai un 'Push Button' son code :
Code:
1 2 3 4 5 6 7 8 9 10 11 12
| function Load_button_Callback(hObject, eventdata, handles)
% hObject handle to Load_button (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
axes(handles.axes1);
[filename pathname]=uigetfile({'*.*'},'data');
fullpathname=strcat(pathname,filename);
signal=fileread(fullpathname);
x=str2double(signal);
load('data.mat');
t=0:1/1000:1;
plot(t,x); |
le signal est bien représenté sur 'axes1'
maintenant je dois coder un autre 'push button' nommée TF_representation afin de faire la représentation fréquentielle du signal précédent dans 'axes2'
mais j'ai pas une idée comment faire !!et merci d'avance