snr

所属分类matlab例程
开发工具:matlab
文件大小:2KB
下载次数:0
上传日期:2020-01-21 13:39:08
上 传 者KevinQL
说明:  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);

文件列表:[举报垃圾]
snr.m, 9885 , 2020-01-21

近期下载者

相关文件

评论我要评论

收藏者