t1 range is 0.1 to 2 and t2 range is 0.1 to 2.....and t1+t2 should not be greater than 2
4 次查看(过去 30 天)
显示 更早的评论
t1 range is 0.1 to 2 and t2 range is 0.1 to 2.....and t1+t2 should not be greater than 2
采纳的回答
更多回答(1 个)
Torsten
2018-4-10
Generate a pair of random numbers in the range [0.1:2].
Accept the pair if their sum is less or equal 2.
Repeat until you have generated enough feasible pairs.
Best wishes
Torsten.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Sources 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!