Quantcast
Channel: MATLAB Central Newsreader Recent Posts
Viewing all articles
Browse latest Browse all 19628

A row vector

$
0
0
Hi

How can I create a vector of number from 1:10:100, such that every 10 numbers are the same like this:
x=[1 1 1 1 1 1 1 1 1 1 1 10 10 10 10 10 10 10 10 10 10 20 20 20 20 20 20 20 20 20 20 20 ... 100 100 100 100 100 100 100 100 100 100];

What is the best efficient way of doing this?

Thanks

Viewing all articles
Browse latest Browse all 19628

Trending Articles