Repeat The components of a matrix so that the size of the output matrix is double to input matrix and components are repeated next to it.
Let Input =
[1 2 3 4 5 6 7]
then Output =
[1 1 2 2 3 3 4 4 5 5 6 6 7 7]
Back to basics 26 - Keywords
01 - Scalar variables
Add a row of zeros on top of a matrix
interesting center of magic matrix
Sum of the Matrix Elements
Angle difference between Hour Hand and Minute Hand of clock
What is Sum Of all elements of Matrix
Replace Nonzero Numbers with 1
Look Up Mapping
LocateMembership | Membership of Matrix in another matrix
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office