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

2 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Logical 的更多信息

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by