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!