finding minimum

4 次查看(过去 30 天)
sagar balip
sagar balip 2011-10-9
how to find minimum between two numbers or variables. like p= min {(k'-1), int(dmax/d)} where dmax ,d, k' are variable

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Whos 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by