How to realize digit recognition by outer product method with matlab
Most people don't understand the knowledge points of this article "matlab how to realize external product digital recognition", so Xiaobian summarizes the following contents for everyone. The contents are detailed, the steps are clear, and they have certain reference value. I hope everyone can gain something after reading this article. Let's take a look at this article "matlab how to realize external product digital recognition".
%% Clear environment variables
clear
clc
%% Import Memory Mode
load data1.mat
T=array_one;
%% External Product Method for Calculating Weight Coefficient Matrix
[m,n]=size(T);
w=zeros(m);
for i=1:n
w=w+T(:,i)*T(:,i)'-eye(m);
end
%% Import pending memory mode
noisy_array=T;
for i=1:100
a=rand;
if a