From where do I insert the transpose operator for matrix operation ?
Afficher commentaires plus anciens
To convert a row matrix into a coloumn matrix I need to perform x = x(transpose). But how to insert the TRANSPOSE operator ?
Réponse acceptée
Plus de réponses (1)
Sriram Tadavarty
le 22 Mar 2020
Hi Shubham,
You can directly use (') operator
% For example
x = rand(3,5);
xTranspose = x'; % size will be 5 x 3
% OR through transpose function
xTrans = transpose(x);
Hope this helps.
Regards,
Sriram
Catégories
En savoir plus sur Matrix Indexing dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!