KevinQL

积分:40
上传文件:1
下载次数:0
注册日期:2020-01-21 13:31:21

上传列表
snr.rar - function [SNDR,SNR,freq,mag,fsample,fb]=snr(yout,fsample,fb,win,dc,hm) % Version 1.0 % Kevin % 2020-01-06 % SNR calculation in frequency domain. SNR/SNDR/THD/ENOB will be provided. % Input frequency(fin) is calculated automaticly by this program. % yout, fsample, fb are must. % input matrix must be Nx1 or 1xN. If it is MxN, first row will be used. % dc part can be optional calculated. % 6 hamonics are calculated for THD and SNDR. % yout ------ data matrix from simulink simulation. % fsample ---- sample frequency in Hz(=2*osr*fb). % fb -------- signal baseband in Hz. % win -------- window option. % 0 -- (boxcar). % 1 -- (hann). % 2 -- (blackman). % 3 -- nuttallwin. % default nuttallwin. % dc including or not including dc component % 0 -- not including (default) % 1 -- including % hm the number of the homanics % 3 default value % Example command: snr(yout,5e6,1e4,1,1,3);,2020-01-21 13:39:08,下载0次

近期下载

收藏