From where do I insert the transpose operator for matrix operation ?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Shubham Bhattacharjee
am 22 Mär. 2020
Kommentiert: Shubham Bhattacharjee
am 22 Mär. 2020
To convert a row matrix into a coloumn matrix I need to perform x = x(transpose). But how to insert the TRANSPOSE operator ?
0 Kommentare
Akzeptierte Antwort
Ameer Hamza
am 22 Mär. 2020
Bearbeitet: Ameer Hamza
am 22 Mär. 2020
In MATLAB, transpose is indicated by apostrophe symbol ('). See: https://www.mathworks.com/help/matlab/ref/transpose.html
x = x';
Weitere Antworten (1)
Sriram Tadavarty
am 22 Mär. 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
Siehe auch
Kategorien
Mehr zu String finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!