Replacing the LSB value
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
I have some values such as
p=0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0
p1=1 1 1 1 1
now i want to replace last five bits of p by p1
so output is
p=0 0 0 0 0 1 0 0 0 0 0 1 1 1 1 1 1
i need to do it by using genetic algorithm plz provide me assistance
0 Commenti
Risposte (1)
Jan
il 8 Nov 2012
No, this is not a job for a genetic algorithm.
p = [0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0];
p1 = [1 1 1 1 1];
p(end-4:end) = p1;
Vedere anche
Categorie
Scopri di più su Genetic Algorithm 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!