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!