搜索资源列表
ding
- 选取windows系统自带的ding.wav信号作为分析对象,在Matlab软件平台下,利用函数wavread对音频信号进行采样,记住采样频率和采样点数,听一下原始声音sound(y, fs, bits)。 (2)音频信号的频谱分析,先画出音频信号的时域波形;然后对音频号进行快速傅里叶变换fft(y,N),N取32768,画出信号的频谱特性,加深对频谱特性的理解。 (3)根据频谱,反演时域特性,画出时域波形。寻找幅值最大的两个频率,此频率除以fft点数在乘以采样频率就是信号的主频,即可合
tlabel
- This program places dates on time axis as DATETICK and works with ZOOM and PAN as DATETICKZOOM by Christophe Lauwerys. But, it also shows the full date after zooming or panning by using the ticks and time-axis label. So, if you zoom in down to second
example4_4
- 例4:在sinc(t)信号中叠加噪声,分析对应频谱 fs=100 采样频率,必须大于两倍基带信号最高频率 ts=1/fs 采样时间间隔 T=2 时间窗大小 - x=x+0.1*randn(1,N) x=awgn(x,-10, measured ) figure plot(t,x) title( 时域信号图 ) xlabel( t /s ) y=fft(x,N) figure if mod(N,2)~=0
example4_3
- 例3:分析占空比为ta的矩形脉冲频谱 T=1 时间窗大小 ta=0.5 占空比 N=256 t=linspace(-T,T,N) ts=2*T/N fs=1/ts -x=zeros(1,N) x(N/2-round(N/2*ta):N/2+round(N/2*ta))=ones(1,2*round(N/2*ta)+1) y=fft(x,N) figure plot(t,x) title([ 时域信号图 占空比为 ,num
LinearBPM
- 这是一个简单的FFT为无电位1 +1 +1 Ð 薛定谔方程的光束传播方法。如果该软件灵活,允许引入的术语(如果是极少数需要包括色散效应高阶导数)。例如,如果一个人渴望解决的一个方程的形式: (四/ dz的+ Ð ^ 2/dx ^ 2 - 0.25 * Ð ^ 3/dx ^ 3)== 0 Ÿ 它可以解决使用以下代码: Ž = linspace(0,1,512) x = linspace(-5,5,1024) psi0 =进出口
yuyinshiyu
- 语音信号处理 时域分析 短时能量 短时平均过零率 短时自相关函数- a=wavread( beifeng.wav ) subplot(6,1,1),plot(a) N=32 for i=2:6 h=linspace(1,1,2.^(i-2)*N);
matlab99999999
- 各种matlab代码,实现各种功能,供查阅者参考,熟悉matlab软件的使用-x=linspace(0,1,21) y=linspace(0,1,21) [X,Y]=meshgrid(x,y) z=(X.*Y)./(X+Y) meshc(X,Y,z)
linspace
- 两块无线大的PEC板位于YOZ平面,一块位于x=0电位为0V,另一块位于x=4电位为20V,使用一维有限元方法求解板间电位。 -Two wireless PEC board located YOZ to plane, one at x = 0 potential is 0V, and the other one is located in x = 4 the potential of 20V, the one-dimensional finite element method for solvi
filter
- M=63 J=(M-1)/2 Wp=0.5*pi Ws=0.6*pi Np=100 Ns=100 weightp=1 weights=100 通带和阻带的加权系数 WpN=linspace(0,Wp,Np) WsN=linspace(Ws,pi-0.05,Ns) Wm=[WpN WsN] p=[ones(1,50),ones(1,50)/2] d=[p,zeros(1,Ns)] W=diag([weightp*ones(1,Np),weights*o
cos_space.m
- Initialise a cosine spaced vector (like linspace, with points biased to one or both ends)
kq
- 这是用MATLAB实现开启和闭合操作的源代码 可适用于机械方面- clc clear [x,y,z]=meshgrid(linspace(-1.3,1.3)) f=(x.^2+(9/4)*y.^2+z.^2-1).^3-x.^2.*z.^3-(9/80)*y.^2.*z.^3 p=patch(isosurface(x,y,z,f,0)) set(p,‘FaceColor’,‘red’,‘EdgeColor’,‘none’)
huahua
- ,用matlab绘制菊花 大家可以 使用此代码再次进行花的画法- data base t0=linspace(0,2*pi) for i=1:100 if rem(i,4)==0 t1(i)=NaN else t1(i)=t0(i) end if rem(i,4)==2 t2(i)=NaN else t2(i)=t0(i) end end p=linspace(0,0.25*pi) [xx,yy]=meshgrid
linspace
- 在matlab中画多条不同颜色曲线的脚本程序,非常好用-Videos multiple different color curve in matlab scr ipt is very easy to use
linspecer
- Matlab画的线较多时,线的颜色的选取对图的美观是有很大的影响的。 Jonathan C. Lansey 提供了在不同线上画不同颜色简单易用的函数。-Examples demonstrating the colors. LINE COLORS N 6 X linspace(0,pi*3,1000) Y bsxfun(@(x,n)sin(x+2*n*pi/N), X. , 1:N) C linspecer(N) axes(
Desktop
- syms y(t) r 2 V odeToVectorField(diff(y, 2) + 0.5*diff(y, 1) - y^3+y^5 r*cos(t)) M matlabFunction(V, vars , { t , Y }) -syms y(t) r 2 V odeToVectorField(diff(y, 2)+ 0.5*diff(y, 1)- y^3+y^5 r*cos(t)) M matlabFunction(V, vars
EMBED Equation
- af=linspace(0,pi/3,100); bt=linspace(0,pi/6,100); [AF,BT]=meshgrid(af,bt); y=(tan(AF).*(0.5*(sin(AF)+(BT))-cos(AF+BT)))./((sin(BT)+0.5*cos(BT)).*(1+tan(AF).*cot(BT)).*cos(AF)); mesh(AF,BT,y)(best you can do some thing dow load ha ha ha ha hsa hah
varspace
- When exporting complex curves with regions of interest and others without, it becomes useful to adaptivley query the domain of the function as opposed to evenly distributing the point density via linspace. When adaptivley adjusting the spacing of the