How to Vecrorizing conditional vactor mapping problem?
Mostra commenti meno recenti
Dear, A is a binary vector its values correspond to the number of times to repeat the corresponding number drawn from the vector B. 0 value in A means copying value from B to C while 1 value in A means representing the corresponding value in B by 3 bits.
as an example: A=[0 1 0 0 0 1]; B=[0 1 0 1 0 0]; C=[0 0 0 1 0 1 0 0 0 0] Can we avoid using classical loop? Regards
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Simulink in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!