亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? fftingui.m

?? This program makes the out put to the serial output port
?? M
字號:
function varargout = FFTinGUI(varargin)% FFTINGUI M-file for FFTinGUI.fig%      FFTINGUI, by itself, creates a new FFTINGUI or raises the existing%      singleton*.%%      H = FFTINGUI returns the handle to a new FFTINGUI or the handle to%      the existing singleton*.%%      FFTINGUI('CALLBACK',hObject,eventData,handles,...) calls the local%      function named CALLBACK in FFTINGUI.M with the given input arguments.%%      FFTINGUI('Property','Value',...) creates a new FFTINGUI or raises the%      existing singleton*.  Starting from the left, property value pairs are%      applied to the GUI before FFTinGUI_OpeningFcn gets called.  An%      unrecognized property name or invalid value makes property application%      stop.  All inputs are passed to FFTinGUI_OpeningFcn via varargin.%%      *See GUI Options on GUIDE's Tools menu.  Choose "GUI allows only one%      instance to run (singleton)".%% See also: GUIDE, GUIDATA, GUIHANDLES% Edit the above text to modify the response to help FFTinGUI% Last Modified by GUIDE v2.5 10-Oct-2008 18:47:31% Begin initialization code - DO NOT EDITgui_Singleton = 1;gui_State = struct('gui_Name',       mfilename, ...                   'gui_Singleton',  gui_Singleton, ...                   'gui_OpeningFcn', @FFTinGUI_OpeningFcn, ...                   'gui_OutputFcn',  @FFTinGUI_OutputFcn, ...                   'gui_LayoutFcn',  [] , ...                   'gui_Callback',   []);if nargin && ischar(varargin{1})    gui_State.gui_Callback = str2func(varargin{1});endif nargout    [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});else    gui_mainfcn(gui_State, varargin{:});end% End initialization code - DO NOT EDIT% --- Executes just before FFTinGUI is made visible.function FFTinGUI_OpeningFcn(hObject, eventdata, handles, varargin)% This function has no output args, see OutputFcn.% hObject    handle to figure% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)% varargin   command line arguments to FFTinGUI (see VARARGIN)load mtlb;N=1024;N_short_FFT=128;Fs=7418;set(handles.fft_order,'string',num2str(N));set(handles.short_fourier_interval,'string',num2str(N_short_FFT));str=get(handles.Fs_units,'string');val=get(handles.Fs_units,'value');switch(str{val})    case 'Hz'        set(handles.sampling_frequency,'string',num2str(Fs));    case 'kHz'        set(handles.sampling_frequency,'string',num2str(Fs/1e3));    case 'MHz'        set(handles.sampling_frequency,'string',num2str(Fs/1e6));endaxes(handles.time_axes);plot([0:length(mtlb)-1],mtlb);ylabel('Amplitude');xlabel('Time [samples]');title('Signal in the time domain');axes(handles.fft_frequency_axes);MyFFT(mtlb,N,Fs);title('Signal in the frequency domain');axes(handles.spectrogram_axes);spectrogram(mtlb,N_short_FFT,32,N,Fs);title('Short Fourier Transform of the signal');% Choose default command line output for FFTinGUIhandles.output = hObject;% Update handles structureguidata(hObject, handles);% UIWAIT makes FFTinGUI wait for user response (see UIRESUME)% uiwait(handles.figure1);function MyFFT(x,N,Fs)Y=fft(x,N).*conj(fft(x,N));if(Fs>N)    f=[0:Fs/N:Fs/2-1];else    f=(Fs/N)*[0:N/2];end;if(Fs/2<10e3)    semilogy(f,Y(1:N/2)/N);    xlabel('Frequency [Hz]');    ylabel('Magnitude [dB]');end;if(Fs/2>1e3 && Fs/2<1e6)    semilogy(f/1e3,Y(1:N/2)/N);    xlabel('Frequency [kHz]');    ylabel('Magnitude [dB]');end;if(Fs/2>1e6)    semilogy(f/1e6,Y(1:N/2)/N);    xlabel('Frequency [MHz]');    ylabel('Magnitudine [dB]');end;% --- Outputs from this function are returned to the command line.function varargout = FFTinGUI_OutputFcn(hObject, eventdata, handles) % varargout  cell array for returning output args (see VARARGOUT);% hObject    handle to figure% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)% Get default command line output from handles structurevarargout{1} = handles.output;% --- Executes on button press in load_data.function load_data_Callback(hObject, eventdata, handles)% hObject    handle to load_data (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)str=get(handles.select_data,'string');val=get(handles.select_data,'value');global file_name;switch(str{val})    case '.dat'        file_name=uigetfile('*.dat', 'Alege un fisier .dat');        file_name=importdata(file_name);    case '.mat'        file_name=uigetfile('*.mat', 'Alege un fisier .mat');        file_name=load(file_name);        file_name=file_name.data;    case '.wav'        file_name=uigetfile('*.wav', 'Alege un fisier .wav');        file_name=wavread(file_name);        file_name=file_name(:,1);endfunction fft_order_Callback(hObject, eventdata, handles)% hObject    handle to fft_order (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)% Hints: get(hObject,'String') returns contents of fft_order as text%        str2double(get(hObject,'String')) returns contents of fft_order as a double% --- Executes during object creation, after setting all properties.function fft_order_CreateFcn(hObject, eventdata, handles)% hObject    handle to fft_order (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.%       See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))    set(hObject,'BackgroundColor','white');endfunction sampling_frequency_Callback(hObject, eventdata, handles)% hObject    handle to sampling_frequency (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)% Hints: get(hObject,'String') returns contents of sampling_frequency as text%        str2double(get(hObject,'String')) returns contents of sampling_frequency as a double% --- Executes during object creation, after setting all properties.function sampling_frequency_CreateFcn(hObject, eventdata, handles)% hObject    handle to sampling_frequency (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.%       See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))    set(hObject,'BackgroundColor','white');endfunction short_fourier_interval_Callback(hObject, eventdata, handles)% hObject    handle to short_fourier_interval (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)% Hints: get(hObject,'String') returns contents of short_fourier_interval as text%        str2double(get(hObject,'String')) returns contents of short_fourier_interval as a double% --- Executes during object creation, after setting all properties.function short_fourier_interval_CreateFcn(hObject, eventdata, handles)% hObject    handle to short_fourier_interval (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.%       See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))    set(hObject,'BackgroundColor','white');end% --- Executes on selection change in Fs_units.function Fs_units_Callback(hObject, eventdata, handles)% hObject    handle to Fs_units (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)% Hints: contents = get(hObject,'String') returns Fs_units contents as cell array%        contents{get(hObject,'Value')} returns selected item from Fs_unitsguidata(hObject,handles);% --- Executes during object creation, after setting all properties.function Fs_units_CreateFcn(hObject, eventdata, handles)% hObject    handle to Fs_units (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    empty - handles not created until after all CreateFcns called% Hint: popupmenu controls usually have a white background on Windows.%       See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))    set(hObject,'BackgroundColor','white');end% --- Executes on button press in plot_data.function plot_data_Callback(hObject, eventdata, handles)% hObject    handle to plot_data (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)global file_name;str=get(handles.Fs_units,'string');val=get(handles.Fs_units,'value');Fs=str2double(get(handles.sampling_frequency,'string'));switch(str{val})    case 'kHz'        Fs=1e3*Fs;    case 'MHz'        Fs=1e6*Fs;endN=str2double(get(handles.fft_order,'string'));N_short_FFT=str2double(get(handles.short_fourier_interval,'string'));if(length(file_name)>1e5)    file_name=file_name(2e4:4.4e5,1);endaxes(handles.time_axes);plot([0:length(file_name)-1],file_name);ylabel('Amplitude');xlabel('Time [samples]');title('Signal in the time domain');axes(handles.fft_frequency_axes);MyFFT(file_name,N,Fs);axes(handles.spectrogram_axes);spectrogram(file_name,N_short_FFT,32,N,Fs);title('Short Fourier Transform of the signal');% --- Executes on selection change in select_data.function select_data_Callback(hObject, eventdata, handles)% hObject    handle to select_data (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)% Hints: contents = get(hObject,'String') returns select_data contents as cell array%        contents{get(hObject,'Value')} returns selected item from select_data% --- Executes during object creation, after setting all properties.function select_data_CreateFcn(hObject, eventdata, handles)% hObject    handle to select_data (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    empty - handles not created until after all CreateFcns called% Hint: popupmenu controls usually have a white background on Windows.%       See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))    set(hObject,'BackgroundColor','white');end

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精品va在线观看| 欧美三级电影在线观看| 日韩va欧美va亚洲va久久| 亚洲欧美日韩电影| 亚洲男帅同性gay1069| 国产精品成人免费| 中文字幕成人网| 国产欧美一区二区精品忘忧草 | 亚洲成人免费观看| 一区二区三区免费观看| 亚洲一区二区三区免费视频| 天天综合天天做天天综合| 青草国产精品久久久久久| 免费欧美日韩国产三级电影| 麻豆精品在线视频| 国产xxx精品视频大全| 不卡的av电影在线观看| 91美女福利视频| 欧美欧美欧美欧美首页| 日韩视频一区二区| 精品国产乱码久久久久久闺蜜| 久久精品视频网| 一区二区中文字幕在线| 亚洲一二三专区| 日本欧美久久久久免费播放网| 久久国产综合精品| www..com久久爱| 欧美日韩综合不卡| 久久伊人中文字幕| 一区二区三区免费网站| 免费成人深夜小野草| 成人国产精品免费网站| 欧美日本乱大交xxxxx| 久久综合九色综合97婷婷女人 | 成人av网址在线| 91福利视频网站| 欧美刺激脚交jootjob| ...av二区三区久久精品| 亚州成人在线电影| 丁香婷婷综合五月| 欧美美女网站色| 中文字幕一区不卡| 日本午夜精品一区二区三区电影 | 亚洲天堂精品在线观看| 欧美a级理论片| www.日韩精品| xfplay精品久久| 亚洲精选一二三| 国产乱码精品一品二品| 欧美日韩国产欧美日美国产精品| 国产午夜精品一区二区| 美女mm1313爽爽久久久蜜臀| 在线观看区一区二| 国产精品超碰97尤物18| 久久成人av少妇免费| 欧美丝袜丝交足nylons图片| 国产女人18水真多18精品一级做| 日韩在线一二三区| 色噜噜夜夜夜综合网| 中文一区二区在线观看| 韩国一区二区在线观看| 91麻豆精品国产91久久久资源速度| 国产精品免费观看视频| 九一久久久久久| 在线不卡中文字幕播放| 一区二区三区91| 99久久精品费精品国产一区二区| 久久精品免费在线观看| 激情图区综合网| 日韩视频在线你懂得| 亚洲午夜精品在线| 欧美制服丝袜第一页| 亚洲乱码中文字幕| 9久草视频在线视频精品| 欧美经典三级视频一区二区三区| 国产又粗又猛又爽又黄91精品| 欧美一区二区黄| 免费在线看一区| 91精品国产综合久久久久久| 亚洲国产aⅴ天堂久久| 欧美又粗又大又爽| 亚洲激情中文1区| 欧美优质美女网站| 污片在线观看一区二区| 欧美一区二区三区日韩| 免费欧美在线视频| 亚洲精品一区二区三区四区高清| 美日韩黄色大片| 精品国产人成亚洲区| 国产乱子轮精品视频| 国产精品蜜臀在线观看| 97久久精品人人做人人爽50路| 中文字幕一区二区日韩精品绯色| 91亚洲国产成人精品一区二三| 亚洲另类中文字| 欧美久久久久久久久久| 麻豆成人av在线| 国产精品美女一区二区| 91久久免费观看| 日本免费在线视频不卡一不卡二 | 99re这里只有精品6| 亚洲黄色小视频| 在线不卡的av| 国产高清不卡一区| 一区二区三区欧美日| 欧美一区二区三区男人的天堂| 国产经典欧美精品| 一区二区三区高清在线| 欧美一卡二卡在线| 成人黄色av电影| 亚洲第一福利一区| 国产欧美一区二区精品性色超碰| 日本道在线观看一区二区| 美国十次综合导航| 亚洲图片欧美激情| 日韩一区二区在线观看| 99麻豆久久久国产精品免费优播| 首页综合国产亚洲丝袜| 国产精品麻豆一区二区| 欧美精品在欧美一区二区少妇 | 亚洲国产精品成人综合色在线婷婷| 色欧美片视频在线观看| 激情亚洲综合在线| 午夜亚洲国产au精品一区二区| 久久精品欧美一区二区三区麻豆| 精品视频全国免费看| 成人中文字幕合集| 蜜臀精品一区二区三区在线观看 | 欧美日韩视频专区在线播放| 国产成人综合网站| 蜜桃一区二区三区在线| 亚洲丶国产丶欧美一区二区三区| 国产日产精品一区| 日韩一级完整毛片| 欧美日韩日日夜夜| 欧洲日韩一区二区三区| 成人免费看片app下载| 久久91精品久久久久久秒播| 天天影视网天天综合色在线播放 | 首页国产欧美久久| 一区二区激情小说| 日韩毛片视频在线看| 国产精品久久久久桃色tv| 久久女同性恋中文字幕| 日韩一级片在线播放| 欧美夫妻性生活| 欧美日韩精品免费观看视频| 在线亚洲一区观看| 99久久er热在这里只有精品66| 国产麻豆欧美日韩一区| 黑人巨大精品欧美黑白配亚洲| 久色婷婷小香蕉久久| 青青草伊人久久| 免费成人小视频| 日本vs亚洲vs韩国一区三区二区 | 国产亚洲精品7777| 欧美精品一区二区三区蜜桃视频| 91精品国产一区二区三区香蕉| 67194成人在线观看| 7777精品伊人久久久大香线蕉最新版| 欧美在线观看一区二区| 欧美日韩精品电影| 日韩欧美一卡二卡| 精品黑人一区二区三区久久| 亚洲精品在线网站| 久久蜜臀中文字幕| 国产精品久久久久影院| 夜色激情一区二区| 污片在线观看一区二区| 久国产精品韩国三级视频| 国产成人av福利| 99久久精品免费看国产免费软件| 色呦呦国产精品| 欧美精品1区2区3区| xvideos.蜜桃一区二区| 中文字幕不卡的av| 亚洲综合在线视频| 另类调教123区| 成人丝袜视频网| 在线观看视频一区二区 | 精品国产第一区二区三区观看体验 | 亚洲视频狠狠干| 亚洲成a人片在线不卡一二三区| 久久国产婷婷国产香蕉| 91在线视频在线| 欧美喷水一区二区| 中文在线一区二区| 日韩国产精品久久| www.欧美日韩国产在线| 91精品国产高清一区二区三区蜜臀| 久久久www成人免费无遮挡大片| 亚洲视频一区二区在线观看| 日本伊人午夜精品| av不卡免费电影| 欧美白人最猛性xxxxx69交| 日韩一区在线看| 激情综合色播五月| 欧美视频精品在线| 国产精品久久久久久久久久免费看 | 欧美色网一区二区|