how to define the below function ?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
How to define the function f1= 2n<->2n+1 i.e it defines two transformations.
1. from value 2n to 2n+1.
2.from value 2n+1 to 2n.
Example. i.e let x= 30 (00011110). if we embed 0/1 then the result will be for 0= 30(00011110) i.e 2n for 1= 31(00011111) i.e 2n+1.
Thank you.
0 Commenti
Risposte (1)
Walter Roberson
il 8 Mag 2017
@(v) v + 1 - 2*mod(v, 2)
Vedere anche
Categorie
Scopri di più su Startup and Shutdown 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!