How to use bit shift operations.

8 visualizaciones (últimos 30 días)
Masazumi Akiya
Masazumi Akiya el 7 de Abr. de 2015
Comentada: Masazumi Akiya el 8 de Abr. de 2015
Bit shift operations "<<" and ">>" in MATLAB is not available.
Are operations "<<" and ">>" able to change other function? How do I use bit shift operations function?

Respuesta aceptada

Geoff Hayes
Geoff Hayes el 7 de Abr. de 2015
Masazumi - use bitshift to shift the bits of your integers.
  3 comentarios
Geoff Hayes
Geoff Hayes el 7 de Abr. de 2015
Masazumi - I don't think you can do that. The "<<" or ">>" don't appear as operators at class operator implementations. Why do you want to do this?
Masazumi Akiya
Masazumi Akiya el 8 de Abr. de 2015
Because I want MATLAB/Simulink to load our C-file. Then, the C-file is using operators "<<" and ">>" . So, I want to replace operators "<<" and ">>" with other functions.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by