How to use bit shift operations.

7 vues (au cours des 30 derniers jours)
Masazumi Akiya
Masazumi Akiya le 7 Avr 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?

Réponse acceptée

Geoff Hayes
Geoff Hayes le 7 Avr 2015
Masazumi - use bitshift to shift the bits of your integers.
  3 commentaires
Geoff Hayes
Geoff Hayes le 7 Avr 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 le 8 Avr 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.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by