clc; clear all; close all; f0 = 100; fs = 800; ts = 1/fs; N = 512; t = 0:ts:(N-1)*ts; x= cos(2*pi*f0*t); din = x; ptTimes = 64; dfft1 = fft(din, N, 2); dfft2 = fft(din, ptTimes * N, 2); figure(1); plo
abuf(:,1,2) 表示: 第2个矩阵的第1列 abuf(:,1:2,2); 表示: 第2个矩阵的第1列 到第二列 ======================================= 表示: 垂直于X轴, 切一刀,得到的面,这个面是x=1的那个面 abuf(1,:,:); ==========
clc;clear all;close all; fs=1000; f0=10; f1=20; f2=30; f3=40; ts=1/fs; t=0:ts:1023*ts; x0 = cos(2*pi*f0*t); x1 = cos(2*pi*f1*t); x2 = cos(2*pi*f2*t); x3 = cos(2*pi*f3*t); mat1 = zeros(16,1024); tem =
这里的x是16行,1024列的数据。 clc;clear all;close all; fs=1000; f0=10; f1=20; f2=30; f3=40; ts=1/fs; t=0:ts:1023*ts; x0 = cos(2*pi*f0*t); x1 = cos(2*pi*f1*t); x2 = cos(2*pi*f2*t); x3 = cos(2*pi*f3*t); mat1
matlab中conv与convn的区别
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号