dmult.m

来自「计量工具箱」· M 代码 · 共 26 行

M
26
字号
function M = dmult(A,B)% PURPOSE: computes the product of diag(A) and B% -----------------------------------------------------% USAGE:     m = dmult(a,b)%  where:    a = a matrix%            b = a matrix% -----------------------------------------------------% RETURNS:  m = diag(A) times B% -----------------------------------------------------             % NOTE: a Gauss compatability function% -----------------------------------------------------% written by:%  Gordon K Smyth, U of Queensland, Australia, gks@maths.uq.oz.au% Nov 19, 1990.  Last revision Aug 29, 1995.% documentation modifications made by:% James P. LeSage, Dept of Economics% University of Toledo% 2801 W. Bancroft St,% Toledo, OH 43606% jpl@jpl.econ.utoledo.edu[mb,nb] = size(B);M=(A*ones(1,nb)).*B;

⌨️ 快捷键说明

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