how to zero pad a matrix?
显示 更早的评论
hi,
my input matrix "x" is a 3X1 matrix.
and i'm using it in the formula
r=x^t (t is some value)
but it is asking for a square matrix or a scalar value.
so, how to convert that 3X1 matrix to 3X3 square matrix by padding zeroes.
please suggest, thanks in advance
采纳的回答
更多回答(1 个)
Star Strider
2015-1-2
编辑:Star Strider
2015-1-2
You likely need to use element-wise operations:
r=x.^t;
类别
在 帮助中心 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!