how to make combinations of different variables(each having some range) using some conditions?

2 ビュー (過去 30 日間)
Rohit P
Rohit P 2022 年 2 月 23 日
編集済み: Rohit P 2022 年 2 月 23 日
Hello MATLAB Experts,
i got stuck at this problem.i have some variables each having a range.For ex. i have variables A with range [30,60], B with range [40,80], C with range [20,30] and D with range [10,40]. now, i want to make combinations of this variables say i want to make 10 different set of combinations(A,B,C,D)(basically 10*4 vector) with certain conditions like value of variable A should be greater than variable B and difference between values of C and D should be 5.
NOTE- i dont want to firstly sample all the 10 sets of combinations and then filter them out using conditions. i want 10 sets of combinations where every combination should satisfy every condition.
please help..

回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by