-
control-of-che-zi
说明: 倒立摆的控制,采用常用的PID算法,现在没有加其他的算法,或许对一些同学有用。(Inverted pendulum control, with common PID algorithm, the algorithm is not added to the other, may be useful for some students.)
- 2011-03-21 23:15:42下载
- 积分:1
-
xiongyalisuanfa
针对匈牙利算法,用matlab实现的匈牙利算法的程序!(Hungarian Algorithm)
- 2012-05-12 14:49:14下载
- 积分:1
-
FilesAll1
读取matlab 文件夹中所有的文件路径 包括子文件夹的文件路径(Read all matlab folder including subfolders file path file path)
- 2013-10-11 09:36:49下载
- 积分:1
-
yooxiangyuan2
杆系结构的大量有限元MATLAB编程代码,,(Truss structures, a large number of finite element MATLAB programming code,)
- 2013-05-20 21:10:37下载
- 积分:1
-
li9_23
clear all
I=imread( lena.bmp )
figure imshow(I)
I2=imrotate(I,-4, bilinear ) 逆时针旋转4度
figure imshow(I2)
I3=fliplr(I) 垂直镜像
figure imshow(I3)
I4=imresize(I,0.5, bilinear ) 缩小为原图的1/2
figure imshow(I4)
A=double(I) 转换为double类型
计算7个不变矩
[nc,nr]=size(A)
[x,y]=meshgrid(1:nr,1:nc) 得到网格
x=x(:)
y=y(:)
A=A(:)
m.m00=sum(A)
if m.m00==0
m.m00=eps
end
m.m10=sum(x.*A)
m.m01=sum(y.*A)
计算均值
xmean=m.m10/m.m00
ymean=m.m01/m.m00
计算中心矩(li9_23.rar
cm.cm00=m.m00
cm.cm02=(sum((y-ymean).^2.*A))/(m.m00^2)
cm.cm03=(sum((y-ymean).^3.*A))/(m.m00^2.5)
cm.cm11=(sum((x-xmean).*(y-ymean).*A))/(m.m00^2)
cm.cm12=(sum((x-xmean).*(y-ymean).^2.*A))/(m.m00^2.5)
cm.cm20=(sum((x-xmean).^2.*A))/(m.m00^2)
cm.cm21=(sum((x-xmean).^2.*(y-ymean).*A))/(m.m00^2.5)
cm.cm30=(sum((x-xmean).^3.*A))/(m.m00^2.5)
im(1)=cm.cm20+cm.cm02
im(2)=(cm.cm20-cm.cm02)^2+4*cm.cm11^2
im(3)=(cm.cm30-3*cm.cm12)^2+(3*cm.cm21-cm.cm03)^2
im(4)=(cm.cm30+cm.cm12)^2+(cm.cm21+cm.cm03)^2
im(5)=(cm.cm30-3*cm.cm12)*(cm.cm30+cm.cm12)...
*((cm.cm30+cm.cm12)^2-3*(cm.cm21+cm.cm03)^2)...
+(3*cm.cm21-cm.cm03)*(cm.cm21+cm.cm03)...
+(3*(cm.cm30+cm.cm12)^2-(cm.cm21+cm.cm03)^2)
im(6)=(cm.cm20-cm.cm02)*((cm.cm30+cm.cm12)^2-(cm.cm21+cm.cm03)^2)...
+4*cm.cm11*(cm.cm30+cm.cm12)*(cm.cm21+cm.cm03)
im(7)=(3*cm.cm21-cm.cm03)*(cm.cm30+cm.cm12)...
*((cm.cm30+cm.cm12)^2-3*(cm.cm21+cm.cm03)^2)...
+(3*cm.cm12-cm.cm30)*(cm.cm21+cm.cm03)...
*()
- 2010-10-17 21:53:14下载
- 积分:1
-
ma=1
标准AM振幅调制方式,ma=1时的标准AM振幅调制(Standard AM amplitude modulation, ma = 1 the standard AM amplitude modulation)
- 2013-07-21 13:47:47下载
- 积分:1
-
diqiuyi
绘制一个地球仪,挺有趣的,程序简单易懂,主要是里面的数据听宝贵。wrldmatr.mat
wrldcmap.mat
diqiuyi.m(Draw a globe, very interesting, the program easy to understand, which is mainly to listen to valuable data. wrldmatr.mat wrldcmap.mat diqiuyi.m)
- 2011-11-08 16:01:28下载
- 积分:1
-
metrics
different distance metrics in matlab
- 2012-11-27 02:56:05下载
- 积分:1
-
simulink_labs
simulink实例仿真源码应有尽有,通信方向在学习Simulink的可以参考一下!(The simulation simulink source everything, communication, direction in learning Simulink that can refer to!)
- 2009-10-21 21:43:29下载
- 积分:1
-
Q3.10
MatlAB与信号与系统的结合例程,实现了傅里叶函数使用,用filter,fplot等绘图。(MatlAB with a combination of signal and system routines, the use of a Fourier function, the filter, fplot and other graphics.)
- 2009-05-02 22:37:34下载
- 积分:1