finding minimum

6 views (last 30 days)
sagar balip
sagar balip on 9 Oct 2011
how to find minimum between two numbers or variables. like p= min {(k'-1), int(dmax/d)} where dmax ,d, k' are variable
  1 Comment
Andrei Bobrov
Andrei Bobrov on 9 Oct 2011
p = min(k-1,fix(dmax/d))

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 9 Oct 2011
Did you look up min() in the help? Did you try something like
p = min([kPrime-1, int32(dmax/d)])

Community Treasure Hunt

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

Start Hunting!