Creating a matrix help
1 view (last 30 days)
Show older comments
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 Comments
Answers (2)
Star Strider
on 26 Mar 2017
This works:
aa = [a'; a'];
aa = aa(:)
aa =
111.23
111.23
354.45
354.45
186.69
186.69
5 Comments
Star Strider
on 27 Mar 2017
My pleasure.
If my Answer helped you solve your problem, please Accept it.
See Also
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!