声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 3020|回复: 4

[编程技巧] 关于矩阵的kronecker乘法

[复制链接]
发表于 2008-4-15 20:37 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
如题:两个2X2的矩阵做kronecker乘,matlab中有没有直接的命令?没有怎么实现?谢谢!
回复
分享到:

使用道具 举报

发表于 2008-4-15 21:21 | 显示全部楼层

回复 楼主 的帖子

kronecker乘是指什么
 楼主| 发表于 2008-4-15 21:42 | 显示全部楼层

Kronecker product

Kronecker product
未命名.bmp
 楼主| 发表于 2008-4-16 08:18 | 显示全部楼层

回复 3楼 的帖子

很抱歉,发现在matlab7.0以上的版本都有kron这个函数,就是实现这个功能的。
我实验室的装的是matlab6.5,所以昨天没有找到。
发表于 2008-4-16 10:00 | 显示全部楼层
matlab6.5也有的,呵呵。使用这个函数时,要留意参数次序。
help kron

KRON   Kronecker tensor product.
    KRON(X,Y) is the Kronecker tensor product of X and Y.
    The result is a large matrix formed by taking all possible
    products between the elements of X and those of Y.   For
    example, if X is 2 by 3, then KRON(X,Y) is

       [ X(1,1)*Y  X(1,2)*Y  X(1,3)*Y
         X(2,1)*Y  X(2,2)*Y  X(2,3)*Y ]

    If either X or Y is sparse, only nonzero elements are multiplied
    in the computation, and the result is sparse.

评分

1

查看全部评分

您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-9-23 13:29 , Processed in 0.064154 second(s), 22 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表