How can I generate a pseudo random column vector V
1 次查看(过去 30 天)
显示 更早的评论
How can I generate a pseudo random column vector V of varying length L (where L will be changing in a cycle)?
0 个评论
采纳的回答
Chetan Bhavsar
2022-12-5
% Define the minimum and maximum values of L
L_min = 10;
L_max = 100;
% Generate a random integer value for L within the defined range
L = randi([L_min, L_max]);
% Generate a column vector V of length L filled with pseudo-random values
V = rand(L, 1)
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Random Number Generation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!