How can I generate a pseudo random column vector V
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
How can I generate a pseudo random column vector V of varying length L (where L will be changing in a cycle)?
0 Commenti
Risposta accettata
Chetan Bhavsar
il 5 Dic 2022
% 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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Random Number Generation in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!