Get the common lowest values of 2 datasets?
2 次查看(过去 30 天)
显示 更早的评论
I have 2 datasets,
a = [ 6.7082 5.3852 3.0000 4.1231 3.1623 7.0711 4.0000 1.0000 1.0000 5.0990 4.4721];
b = [70.0000 75.0000 49.0000 9.0000 65.0000 79.0000 6.0000 51.0000 56.0000 9.0000 71.0000];
If I was to get the smallest value of each set, how do I get the optimal smallest common value for both sets. eg smallest value of "a" is 1.0000 and smallest value of b is 6.0000, however the corresponding value at the 1.0000 (at same index) is 51.00000 and for 6.0000 you have 4.0000. Maybe this isn't possible to do so but I was wondering can you?
5 个评论
Adam Barber
2015-11-10
If I understand correctly, you really just want the smallest total column? If so, can't you just add a and b and take the minimum?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!