How to use bit shift operations.

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?

 采纳的回答

Geoff Hayes
Geoff Hayes 2015-4-7

0 个投票

Masazumi - use bitshift to shift the bits of your integers.

3 个评论

Thanks, Geoff.
I want to replace function "<<" with function "bitshift", but I don't know how to replace. How do I make a function to replace "<<" and ">>" with "bitshift"?
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?
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.

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Logical 的更多信息

产品

标签

Community Treasure Hunt

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

Start Hunting!

Translated by