MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayNew to MATLAB?
MATLAB Central > MATLAB Newsreader > how to do logical bit shift? 

Subject: how to do logical bit shift? From: yajnesh padiyar Date: 28 Sep, 2009 15:12:02 Message: 1 of 12 
I want to use logical bit shift ...... I used mathworks link to find the way http://www.mathworks.com/access/helpdesk/help/toolbox/fixedpoint/index.html?/access/helpdesk/help/toolbox/fixedpoint/ref/bitsrl.html&http://www.google.co.in/search?hl=en&source=hp&q=logical+bit+shift+matlab&btnG=Google+Search&meta=&aq=f&oq= 
Well, as the documentation indicates: Do you have the fixed point toolbox? 
Subject: how to do logical bit shift? From: yajnesh padiyar Date: 29 Sep, 2009 14:50:19 Message: 3 of 12 
"Matt Fig" <spamanon@yahoo.com> wrote in message <h9qq35$b93$1@fred.mathworks.com>... 
Subject: how to do logical bit shift? From: Thomas Clark Date: 29 Sep, 2009 15:18:03 Message: 4 of 12 
It kind of depends on what you want to do. You've unfortunately not described what you're doing very well. 
Subject: how to do logical bit shift? From: yajnesh padiyar Date: 30 Sep, 2009 17:18:03 Message: 5 of 12 
thank you again for your reply 
> i want to do logical shift of a 32 bit binary number 4 bit to left and 5 bit to right...... 
Subject: how to do logical bit shift? From: yajnesh padiyar Date: 1 Oct, 2009 18:14:02 Message: 7 of 12 
i tried many ways to shift the 32 bit number 
Subject: how to do logical bit shift? From: Ashish Uthama Date: 1 Oct, 2009 18:21:03 Message: 8 of 12 
On Thu, 01 Oct 2009 14:14:02 0400, yajnesh padiyar <yp171988@gmail.com> 
"Ashish Uthama" <first.last@mathworks.com> wrote in message <op.u04vxd2ca5ziv5@uthamaa.dhcp.mathworks.com>... 
Subject: how to do logical bit shift? From: yajnesh padiyar Date: 2 Oct, 2009 16:17:03 Message: 10 of 12 
A=uint32(((5^.5)1)*(2^31)); 
Subject: how to do logical bit shift? From: Steven Lord Date: 2 Oct, 2009 16:25:25 Message: 11 of 12 

Subject: how to do logical bit shift? From: yajnesh padiyar Date: 3 Oct, 2009 17:07:01 Message: 12 of 12 
thank you all 
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.