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 ?
0 个评论
采纳的回答
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
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);
Hope this helps.
Regards,
Sriram
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 String 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!