From where do I insert the transpose operator for matrix operation ?

1 次查看(过去 30 天)
To convert a row matrix into a coloumn matrix I need to perform x = x(transpose). But how to insert the TRANSPOSE operator ?

采纳的回答

Ameer Hamza
Ameer Hamza 2020-3-22
编辑:Ameer Hamza 2020-3-22
In MATLAB, transpose is indicated by apostrophe symbol ('). See: https://www.mathworks.com/help/matlab/ref/transpose.html
x = x';

更多回答(1 个)

Sriram Tadavarty
Sriram Tadavarty 2020-3-22
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);
For more details, go through transpose.
Hope this helps.
Regards,
Sriram

类别

Help CenterFile Exchange 中查找有关 String 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by