examp14.m

来自「ADSP TOOLBOX: Version 2.0 and gui m-file」· M 代码 · 共 11 行

M
11
字号

clc,echo on 
%EXAMPLE 14 
x1=randist(500,'uni'); x2=randist(500,'uni'); % Uniform signals x1 and x2
x3=randist(500,'uni');x4=randist(500,'uni');  % and x3 and x4 
x5=randist(500,'uni');x=x1+x2+x3+x4+x5;       % and x5 and their sum 
hist(x1,20);pause(2)                          % Histogram of one realization x1 
hist(x,20);                                   % Histogram of sum x
m1=mean(x1), m=mean(x)                        % Mean of x (should equal sum of means)
echo off %end of example

⌨️ 快捷键说明

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