clearlAB=0.120H=0.380lCD=0.600lDE=0.600omega1=1alpha1=0du=180pihd=pi180figure(1)for n1=1:400 这里为什么不能是400 theta1(n1)=(n1-1)hd [thetaomegaalpha]=rocker(theta1(n1)omega1lABH) L(n1)=theta(
第2章 图像获取2.3.2 二维连续傅里叶变换例2.2 figure(1) 建立图形窗口1[uv] = meshgrid(-1:0.01:1) 生成二维频域网格F1 = abs(sinc(u.pi)) F2 = abs(sinc(v.pi))F=F1.F2 计算幅度频谱F=F
对于正弦序列 进行16点的dft仿真k=16 n1=[0:1:15] xa1=sin(2pin1k) subplot(221) plot(n1xa1) xlabel(tT)ylabel(x(n)) xk1=fft(xa1)xk1=abs(xk1) subplot(222) stem(n1xk1) xlabel(k)ylabel(X(k)) n2=[0:1:7] xa2=sin(2pin2k)
Matlab版HOG代码function F = hogcalculator(img cellpw cellph nblockw nblockh...??? nthet overlap isglobalinterpolate issigned normmethod) HOGCALCULATOR calculate R-HOG feature vector of an input image usi
t=0::fai= 2.pi.t.l1=5sqrt(2)>> l2=25>> l3=10>> l4=26>> a=(fai)>> b=.((fai)-l4)>> c=l22-l12-l32-l42(fai)>> fai3=((a-sqrt()).(b-c))>> d=(fai)>> e=.((fai)-l4)>> f=l12l22l42-l32-(fai)>> fai2=((d-sqrt()).(
function out=MMSmteam(smmu1mu2T)MMSm排队模型s——修理工个数m——机器源数T——时间终止点mu1——机器离开-到达时间服从指数分布mu2——修理时间服从指数分布事件表: p_s——修理工空闲概率 arrive_time——机器到达事件 leave_time——机器离开事件mintime——事件表中的最近事件current_time——当前时间L—
灰色预测模型Matlab代码 sr(1) = 11.985 sr(2) = 12.1121 sr(3) = 12.2389 sr(4) = 12.3626 sr(5) = 12.481 x1=[0 0 0 0 0] for j = 1 : 5 for i = 1 : j x1(j) = x1(j)sr(i) end end for k = 2 : 5
1.色彩空间转换function [rg]=rgb_RGB(Ori_Face)R=Ori_Face(::1)G=Ori_Face(::2)B=Ori_Face(::3)R1=im2double(R) 将uint8型转换成double型G1=im2double(G)B1=im2double(B)RGB=R1G1B1row=size(Ori_Face1) 行像素col
1.色彩空间转换function [rg]=rgb_RGB(Ori_Face)R=Ori_Face(::1)G=Ori_Face(::2)B=Ori_Face(::3)R1=im2double(R) 将uint8型转换成double型G1=im2double(G)B1=im2double(B)RGB=R1G1B1row=size(Ori_Face1) 行像素col
function youhuafunD=code N=50???????? Tunable maxgen=50???? Tunable crossrate=0.5 Tunable muterate=0.08 Tunable generation=1?? num = length(D) fatherrand=randint(numN3) score = zeros(maxgenN) whi
违法有害信息,请在下方选择原因提交举报