how to zero pad a matrix?
Mostra commenti meno recenti
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
Risposta accettata
Più risposte (1)
Star Strider
il 2 Gen 2015
Modificato: Star Strider
il 2 Gen 2015
You likely need to use element-wise operations:
r=x.^t;
Categorie
Scopri di più su Logical in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!