當前位置:編程學習大全網 - 編程軟體 - matlab 中在運算符號前加壹點是什麽意思?

matlab 中在運算符號前加壹點是什麽意思?

*表示矩陣相乘(矩陣的乘法)

.*表示各個元素分別相乘

a=[0 1;2 3];

>> b=[3 2;0 1];

>> c=a*b

c =

0 1

6 7

%

c=[ 0*3+1*0 0*2+1*1

2*3+3*0 2*2+3*1]

%

>> c=a.*b

c =

0 2

0 3

%

c=[ 0*3 1*2

2*0 3*1]

%

>> help *

* Matrix multiply.

X*Y is the matrix product of X and Y. Any scalar (a 1-by-1 matrix)

may multiply anything. Otherwise, the number of columns of X must

equal the number of rows of Y.

C = mtimes(A,B) is called for the syntax 'A * B' when A or B is an

object.

See also times.

Overloaded methods:

gf/mtimes

codistributed/mtimes

LagOp/mtimes

fints/mtimes

idmodel/mtimes

localpoly/mtimes

icsignal/mtimes

InputOutputModel/mtimes

cvdata/mtimes

timeseries/mtimes

laurpoly/mtimes

laurmat/mtimes

Reference page in Help browser

doc mtimes

>> help .*

.* Array multiply.

X.*Y denotes element-by-element multiplication. X and Y

must have the same dimensions unless one is a scalar.

A scalar can be multiplied into anything.

C = times(A,B) is called for the syntax 'A .* B' when A or B is an

object.

See also mtimes.

Overloaded methods:

gf/times

codistributed/times

fints/times

DynamicSystem/times

cvdata/times

categorical/times

timeseries/times

Reference page in Help browser

doc times

  • 上一篇:維修Club Car高爾夫球車需要哪些工具?哪種規格的?
  • 下一篇:我的消防車機器人世界好玩嗎?我的消防車機器人世界遊戲介紹。
  • copyright 2024編程學習大全網