Convert matrix A to S
1 次查看(过去 30 天)
显示 更早的评论
Hello,
I try to convert ths matrix (called A)
A = [5 8 3; 1 2 3; 2 4 6]
to a matrix called S, using this code
S =
1 2
5 8
9 10
S=[A(1,1:2); A(2:3,1).'; 9 10]
This is not qute right
Any ideas? Thank you
1 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Type Conversion 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!