-
K-means
用matlab实现的聚类,效果很好,里面有部分数据,点击可以直接运行(Cluster with matlab to achieve good results, which are part of the data, click directly run)
- 2010-06-18 18:05:59下载
- 积分: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
-
e2
说明: Any change to the value of Mresults in immediate and phase-continuous changes in the output frequency
- 2014-02-23 02:42:47下载
- 积分:1
-
matlab
这是一组计算模拟一维电磁波在各种介质中的传播的matlab程序,可以帮助你了解并且掌握fdtd在不同介质中是如何设置的。(This is a set of computational simulation of one-dimensional electromagnetic wave in a variety of media Matlab procedures, can help you understand and master the FDTD in different media is how to set.)
- 2012-10-13 09:50:39下载
- 积分:1
-
cover_compute
无线传感器网络中 计算代价的描述与实现,计算次数的编码(Description and Implementation of wireless sensor networks computational cost, calculate the number of coding)
- 2013-04-23 10:53:57下载
- 积分:1
-
LIFT97
9/7提升小波的代码,用matlab写的,欢迎大家交流!(9/7 lifting wavelet code, written with matlab, welcomed the exchange of everyone!)
- 2007-08-20 23:39:58下载
- 积分:1
-
imageprocessinglicensepaltematlab
its a r on license plate recogniton
- 2010-11-08 21:28:12下载
- 积分:1
-
boilerash
利用MATLAB中的神经网络模型对锅炉进行结渣预测(The use of MATLAB' s neural network model of the boiler slagging prediction)
- 2010-01-25 20:24:20下载
- 积分:1
-
unconstrained-optimization
《精通matlab最优化计算》中的源程序。可用于解决无约束一维极值问题( one dimensional optimization problem)
- 2011-09-17 20:55:36下载
- 积分:1
-
06675643
提高电源的动态响应 非线性和复杂的系统是一个转换器 电力电子的有趣的挑战。摘要介绍了 设计和实现数字PID控制器使用 混沌粒子群优化(复)提振 转换器,提出了自动调优转换器的方法 最优启动响应。当系统启动时,处理器 单元分析了开环启动响应转炉和 在一些迭代使用复准备最佳反应 算法。使用逻辑映射混沌映射序列 增加它的收敛速度和精度。模拟 和实现结果显示提出的效率 方法(Improving dynamic response of DC-DC
converters which are nonlinear and complicate systems is an
interesting challenge in power electronics. This paper presents the
design and implementation of digital PID controller using the
chaotic particle swarm optimization (CPSO) for a Boost
converter and proposes an approach for auto tuning converter
optimum startup response. When the system starts, processor
unit analyses the open loop startup response of converter and
prepares optimum response during some iteration using CPSO
algorithm. Chaotic mapping using logistic map sequences
increases its convergence rate and resulting precision. Simulation
and Implementation results show efficiency of proposed
approach)
- 2014-12-01 10:13:30下载
- 积分:1