Professional Documents
Culture Documents
Ak 31 SC
Ak 31 SC
Experiment-3.1
1. Aim: To store vector in an auto-associative net. Find weight matrix & test the net withinput.
x = [1 1 -1 -1];
w = zeros(4, 4);
w = x' * x;
yin = x * w;
y = zeros(1, 4);
for i = 1:4
DEPARTMENT OF
COMPUTER SCIENCE & ENGINEERING
if yin(i) > 0
y(i) = 1;
else
y(i) = -1;
end
end
disp('Akansha 21BCS10245');
disp('Weight matrix:');
disp(w);
if isequal(x, y)
else
end
5. OUTPUT