finding minimum

how to find minimum between two numbers or variables. like p= min {(k'-1), int(dmax/d)} where dmax ,d, k' are variable

1 件のコメント

Andrei Bobrov
Andrei Bobrov 2011 年 10 月 9 日
p = min(k-1,fix(dmax/d))

サインインしてコメントする。

回答 (1 件)

Image Analyst
Image Analyst 2011 年 10 月 9 日

0 投票

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

カテゴリ

質問済み:

2011 年 10 月 9 日

Community Treasure Hunt

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

Start Hunting!

Translated by