MATLAB CODE |
||||

This function allows
the user to insert a matrix then graphs only the ones as circles . For
example if this is the matrix you have inputted is this: 1 0 0 1 0 0 1 1 1 Then the output would look like this: OClick here to see how the figure looks in MATLAB O O O O This function is going to be implemented into the ART1 algorithm code using MATLAB so after the pattern is learned the output will be generated graphically. Below is the function: X=[1,0,0;1,0,0;1,1,1] for i=1:3 for j=1:3; if X(i,j)= =1 x=j; y=-i; hold on; plot(x,y,'go'); end end MATLAB MAIN FUNCTION FOR ART1 end end BACK TO PROJECT PAGE BACK TO HOME PAGE |