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

Masazumi Akiya
Masazumi Akiya 2015년 4월 7일
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"?
Geoff Hayes
Geoff Hayes 2015년 4월 7일
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 2015년 4월 8일
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에 대해 자세히 알아보기

제품

태그

질문:

2015년 4월 7일

댓글:

2015년 4월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by