Creating a matrix help
2 次查看(过去 30 天)
显示 更早的评论
a=[111.23199; 354.44814; 186.69329]
b=[111.23199;111.23199;354.44814;354.44814;186.69329;186.69329]
How can I create a matrix "a" in the form of a matrix "b"?
0 个评论
回答(2 个)
Star Strider
2017-3-26
This works:
aa = [a'; a'];
aa = aa(:)
aa =
111.23
111.23
354.45
354.45
186.69
186.69
5 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!