calc_inv.m

来自「随机神经网络工具箱」· M 代码 · 共 39 行

M
39
字号
%   File Name      : calc_inv.m
%   Purpose        : Calculating the inverse of the weight matrix 
%   Author         : Hossam E. Mostafa Abdelbaki, School of Computer Science, 
%                    University of Centeral Florida (UCF). 
%   Release        : ver. 1.0.
%   Date           : October 1998.
%
%       RNNSIM is a software program available to the user without any 
%   license or royalty fees. Permission is hereby granted to use, copy, 
%   modify, and distribute this software for any purpose. The Author 
%   and UCF give no warranty, express, implied, or statuary for the 
%   software including, without limitation, waranty of merchantibility 
%   and warranty of fitness for a particular purpose. The software 
%   provided hereunder is on an "as is"  basis, and the Author and the 
%   UCF has no obligation to provide maintenance, support, updates, 
%   enhancements, or modifications. 
%
%       RNNSIM  is available for any platform (UNIX, PCWIN, MACHITOCH). 
%   It runs under MATLAB ver. 5.0 or highrer. 
%
%       User feedback, bugs, or software and manual suggestions can 
%   be sent via electronic mail to :   ahossam@cs.ucf.edu


%%%%%%%%%%%Function Cacl_Inv %%%%%%%%%%%%%%%
   %%%%% Calculating W and (I-W)^-1 %%%%%%%%%%%%%%
   for j = 1:N_Total
       for i = 1:N_Total
          W(j,i) = (wplus(j,i) - (wminus(j,i)*q(i)))/D(i);
       end
    end
    
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    
    inverse2 = inv(eye(N_Total,N_Total)-W);
    
    Winv = inverse2;
    %%%%%%%   End Calc_Inv %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?