Matlab画冲激信号,stem方法,同一个窗口画多个坐标系,0.8^n*[u(n) 您所在的位置:网站首页 matlab里面stem Matlab画冲激信号,stem方法,同一个窗口画多个坐标系,0.8^n*[u(n)

Matlab画冲激信号,stem方法,同一个窗口画多个坐标系,0.8^n*[u(n)

2024-07-04 12:06| 来源: 网络整理| 查看: 265

Matlab画冲激信号,stem方法,同一个窗口画多个坐标系, 0. 8 n ∗ [ u ( n ) − u ( n − 10 ) ] 0.8^n*[u(n)-u(n-10)] 0.8n∗[u(n)−u(n−10)]式子的正确画法 信号与系统第二章matlab作业 2.1 离散卷积

MATLAB提供了conv函数可用来计算下面的卷积和 这里假设 和 都是有限长序列。如果 仅在 区间内为非零, 仅在 区间内为非零,那么 就仅在区间内为零值。conv函数具体用法如下:  C = conv(A, B) 计算序列A、B的卷积,C为卷积向量,其长度为length(A)+length(B)-1。

x ( n ) = u ( n ) − u ( n )     ,    h ( n ) = 0. 8 n ∗ [ u ( n ) − u ( n − 10 ) ] x(n)=u(n)-u(n)\space \space \space , \space \space h(n)=0.8^n*[u(n)-u(n-10)] x(n)=u(n)−u(n)   ,  h(n)=0.8n∗[u(n)−u(n−10)] matlab 命令行窗口 nx=0:3; x=ones(1,length(nx)); nh=0:9; h=exp(nh*log(0.8)); y=conv(x,h); ny_min=min(nx)+min(nh); ny_max=max(nx)+max(nh); ny=ny_min:ny_max; subplot(3,1,1);stem(nx,x); xlabel('n');ylabel('x(n)');axis([ny_min,ny_max,0,max(x)]); subplot(3,1,2);stem(nh,h); xlabel('n');ylabel('h(n)');axis([ny_min,ny_max,0,max(h)]); subplot(3,1,3);stem(ny,y); xlabel('n');ylabel('x(n)*h(n)');axis([ny_min,ny_max,0,max(y)]);

在这里插入图片描述 这 里 画   h ( n ) = 0. 8 n ∗ [ u ( n ) − u ( n − 10 ) ]   所 用 的 原 理 是 : 这里画\space h(n)=0.8^n*[u(n)-u(n-10)] \space 所用的原理是: 这里画 h(n)=0.8n∗[u(n)−u(n−10)] 所用的原理是: x n = e ? x^n=e^? xn=e? ? = l o g e x n ?=log_ex^n ?=loge​xn l o g e x n = n ∗ l o g e x log_ex^n=n*log_ex loge​xn=n∗loge​x x n = e n ∗ l o g e x x^n=e^{n*log_ex} xn=en∗loge​x M a t l a b : e n = = e x p ( n )   ,   其 中 n 可 以 为 向 量 , 数 组 , 矩 阵 l o g e N = = l o g ( N )   ,   其 中 N 可 以 为 向 量 , 数 组 , 矩 阵 所 以 :   x n = = e x p ( n ∗ l o g ( x ) ) Matlab:e^n==exp(n)\space ,\space 其中n可以为向量,数组,矩阵\\ log_eN==log(N) \space , \space 其中N可以为向量,数组,矩阵\\ 所以:\space x^n==exp(n*log(x)) Matlab:en==exp(n) , 其中n可以为向量,数组,矩阵loge​N==log(N) , 其中N可以为向量,数组,矩阵所以: xn==exp(n∗log(x)) 2.     s u b p l o t ( l i n e , c o l u m n , c u r r e n t ) 2. \space \space \space subplot(line,column,current) 2.   subplot(line,column,current) 其中line和col指定行和列,把窗口分成几个部分。 分出来的每一块儿都有自己对应的 key(1



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有