How to change element position in matrix?
5 次查看(过去 30 天)
显示 更早的评论
I am having 7*1 matrix. Now i need to generate a output matrix whose first element will be second element of matrix A and first element of matrix A will be considered as last element in output matrix.
For example:
A=[1;1;0;0;1;0;1]
Expected output:
B=[1;0;0;1;0;1;1]
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrices and Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!