store the result of one row for 100 iterations to a matrix
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
HASAN AL-KAF
il 28 Ott 2017
Risposto: Walter Roberson
il 28 Ott 2017
HI i have this function which is sub main function. if i have 100 iterations in my main function that call my sub main function. i want code to store the FeatIndex matrix which is random values to store in a matrix for all the iteration so i can know what are theses random values in FeatIndex for 100 iterations.
function z=MinOne1111(x)
FeatIndex = randi([1 401],120,1)
x = x([FeatIndex],:);
z= x ;
end
0 Commenti
Risposta accettata
Walter Roberson
il 28 Ott 2017
function [z, FeatIndex] = MinOne1111(x)
FeatIndex = randi([1 401],120,1)
x = x([FeatIndex],:);
z= x ;
end
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Logical 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!