Generating a huge vector.

1 次查看(过去 30 天)
Nina
Nina 2020-6-10
I'm trying to make a huge vector of 1x115200000. 1 to 76800 will be the number 1, 76800 to 153600 will be the number 2, till it reached number 1500.

回答(1 个)

the cyclist
the cyclist 2020-6-10
编辑:the cyclist 2020-6-10
M = 1500;
N = 76800;
x = reshape(repmat(1:M,N,1),1,M*N);

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by