Differences between two vectors that suppose to be equal
显示 更早的评论
Does anyone know why those are not all equal?
a=.1:.1:.9; b=[.1 .2 .3 .4 .5 .6 .7 .8 .9];
a==b
1 1 0 1 1 1 1 1 1
a(3)-b(3)
5.551115123125783e-17
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 MATLAB 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!