Shifting a 64 bit hex
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Adarsh Santhosh
el 24 de En. de 2018
Comentada: Adarsh Santhosh
el 24 de En. de 2018
First I enter a string and convert it to binary using hex2dec and dec2bin.
But I can't shift using bitshift because of error must be numeric.
I can't shift with dec also.It gives altogether a different answer.
I want to right logical shift, 92f09952c625e3e9 by 1 and should get
49784ca96312f1f4.
Can anyone please help me?
0 comentarios
Respuesta aceptada
Walter Roberson
el 24 de En. de 2018
S = '92f09952c625e3e9';
sprintf('%lx', bitshift(sscanf(, '%lx'), -1) )
Más respuestas (0)
Ver también
Categorías
Más información sobre Shifting and Sorting Matrices en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!