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

📄 histo.m

📁 SDT modulator implementation woith simulnik
💻 M
字号:
function [bin,xx] = histo(y,N)
% bins the elements of Y into N equally spaced containers within
% the maximum dynamic of Y.
%
% bin: the number of occurrences for each bin
% xx:  is a vector returning the position of each bin

range=ceil(2*max(y)*10)/10;
dx = range/N;
for i=1:N
	x(i) = -range/2 + (i-1)*dx + dx/2;
end
[bin,xx]=hist(y,x);

⌨️ 快捷键说明

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