Sign in to follow this  

MatLab: Div function?

This topic is 1505 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

First of all, I hope I posted in the right forum section.

 

Is there a Div function in MatLab? 

For example:  the div of 15/4 = 3?? 

 

I tried: 15 div 4

 

and i get an Error: Unexpected MATLAB expression.

 

I have been searching all over internet without finding anything...

I use the 2011 version.

 

Thanks in advance biggrin.png

Edited by shadowstep00

Share this post


Link to post
Share on other sites

Never used MatLab. I have used google before though...

 

http://www.mathworks.co.uk/help/matlab/ref/idivide.html

 

It looks like

a ./ b

will work.

 

I googled "matlab integer division function"

 

EDIT: Maybe not, as I said I haven't used MatLab before... EDIT2: That looks like some kind of array operator, so go with idivide

Edited by Paradigm Shifter

Share this post


Link to post
Share on other sites

First of all, I hope I posted in the right forum section.

 

Is there a Div function in MatLab? 

For example:  the div of 15/4 = 3?? 

 

I tried: 15 div 4

 

and i get an Error: Unexpected MATLAB expression.

 

I have been searching all over internet without finding anything...

I use the 2011 version.

 

Thanks in advance biggrin.png

 

There is this,

 

http://www.mathworks.com/help/matlab/ref/idivide.html

 

-Josh

Share this post


Link to post
Share on other sites

This topic is 1505 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this