✅作者简介：热爱科研的Matlab仿真开发者，修心和技术同步精进，matlab项目合作可私信。

🍎个人主页：Matlab科研工作室

🍊个人信条：格物致知。

​智能优化算法​​  ​​神经网络预测​​ ​​雷达通信 ​​ ​​无线传感器​

​信号处理​​ ​​图像处理​​ ​​路径规划​​ ​​元胞自动机​​ ​​无人机​

## ⛄ 部分代码

function [psi,delta,xmap,wstilda4,wstilda5]=mapsmoother(a,b,c,d,X20,xf,wftilda,y)

[n,T]=size(xf);

%Initialization

delta(:,1)=X20;

%Recursion

for t=2:T

for j=1:n

delta(j,t)=log(normpdf(y(t),my(c,xf(j,t)),d))+max(delta(:,t-1)+log(normpdf(xf(j,t),mx(a,xf(:,t-1)),b)));

[h,psi(j,t)]=max(delta(:,t-1)+log(normpdf(xf(j,t),mx(a,xf(:,t-1)),b)));

end

end

%Termination

[m,iter(T)]=max(delta(:,T));

xmap(T)=xf(iter(T),T);

for i=1:n

ws5(i,T)=wftilda(i,T)*weight(xmap(T),xf(:,T),1,wftilda(:,T),i,a,b);

end

wstilda5(:,T)=ws5(:,T)/sum(ws5(:,T));

%Backtracking

for t=T-1:-1:1

iter(t)=psi(iter(t+1),t+1);

xmap(t)=xf(iter(t),t);

for i=1:n

ws4(i,t)=wftilda(i,t)*weight(xmap(t+1),xf(:,t),1,wftilda(:,t),i,a,b);

ws5(i,t)=wftilda(i,t)*weight(xmap(t),xf(:,t),1,wftilda(:,t),i,a,b);

end

wstilda4(:,t)=ws4(:,t)/sum(ws4(:,t));

wstilda5(:,t)=ws5(:,t)/sum(ws5(:,t));

end

## ⛄ 参考文献

[1]韩长军. 基于MATLAB的语音信号去噪方法应用[J]. 辽东学院学报：自然科学版, 2017, 24(1):6.