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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!