⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 datarate.m

📁 信号与信息处理-matlab信号处理工具箱源程序集合
💻 M
字号:
function [rate SNRq SNRqdb]=datarate(freq,bitsPerSample,buffer)% DATARATE Data rate, bytes per minute storage% %   [rate SNRq SNRqdb]=datarate(freq,bitsPerSample,buffer)% %   OUTPUTS%   rate   = number of bytes per minute capable of being stored [bytes/min]%   SNRq   = signal to quantisation level [1]%   SNRqdb = signal to quantisation dB equivalent [dB]% %   INPUTS%   freq          = Frequency of the signal to be digitised [Hz]%   bitsPerSample = Number of bits per sample [1]%   buffer        = bandwidth allowance desired [%]% %   AIM:%   To find the data rate capacity when digitizing a signal, along with the%   signal to noise level. This signal to noise is actually a signla to%   quantisation level.% %   TECHNICAL BACKGROUND:%   Electronic Intelligence (ELINT) information can be recorded on hard%   disk drives. To do this an analog signal first needs to be digitised.%   To digitise a signal, it should be sampled at twice the frequency of%   the signal to avoid alias signals. An alias signal is one that is%   caused when undersampling a signal; the representation is not the%   correct signal. A sample rate of twice the frequency is know as the%   Nyquist rate.%   The signal to noise is associated with the number of bits per sample.%   It is actually a peak signal power to average quantisation noise power,%   therefore known as signal to quantisation power.% %   REFERENCES:%   Benson, Frater, Ryan, TACTIACL ELECTRONIC WARFARE, Argoss Press, 2007,%   pp.224,225.%   Adamy, INTRO TO EW MODELLING AND SIMULATION, Artech house, 2003,%   pp.80,81%   Sklar, DIGITAL COMMUNICATIONS, Prentice-Hall, 2006, p.79% %   AUTHOR: Jason Moyle%   DATE: September 2008%   % TODO: check spelling digitise quantise%   Copyright 2008 by Jason Moyle%% Initiate variablessamprate=2;             % Sampling rate or Nyquistbyte=8;                 % Bits per byteallow=(1+buffer/100);   % Bandwidth allowancemin=60;                 % Seconds per minutef=freq;                 % Frequency of the signal to be digitisedm=bitsPerSample;        % Number of bits per sample%% Calculate data raterate=freq*samprate*bitsPerSample/byte*allow*min;%% Calculate signal to quantisation noisesnr=3*2^(2*m-1);        % SNR associated with bits per sampleSNRq=samprate*snr;      % Peak signal power to average quantisation noise                         %   powerSNRqdb=g2db(SNRq);      % dB version of above                        

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -