• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

matlab中的易混运算

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

 1、点乘(.*)
  先贴出matlab中的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.


大致意思是:点乘是元素间的乘法,X和Y必须维度相同,除非一个是标量,标量可以与所有的向量相乘。这里标量可以理解为数值。

点乘的另一种形式是times(A,B),倆者结果是相同的  下面来验证一下;


2:乘法(*)

matlab中的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.


  这个就是我们平常所说的矩阵相乘,即满足A的列数等于B的行数,用mtimes也可以表示



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Rust初步(一):介绍发布时间:2022-07-18
下一篇:
最终,我们放弃了 GO,迁移至 Rust,特性使然发布时间:2022-07-18
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap