Home different results of mtimes() in MATLAB
Reply: 0

different results of mtimes() in MATLAB

Hong
1#
Hong Published in 2017-12-08 02:04:40Z

I tried belows on MATLAB.

A = rand(2, 20);
B = rand(20, 1);
D1 = A * B;
D1 = D1(1);
D2 = A(1, :) * B;
D1 == D2

ans =

0

D1 - D2

ans =

-8.8818e-16

I expected that two results are the exactly same. What differences between both calc ways?..

Thanks,

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.554555 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO