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

different results of mtimes() in MATLAB

user363
1#
user363 Published in April 25, 2018, 10:51 am

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.2982 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO