generated "unvaforable zero" value from multiplying two matrices, how to solve/correct it?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
for simplicity, i have a two matrices A and B generated by matlab like below. when i calculated manually by excel with the function mmult(A;B) the value of C is vaforable like this. even when i increasing the decimal. especially the value of cell matrix C at 3,1 it was definetly zero![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1072720/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1072720/image.png)
but when i multiply them in matlab i got value of C like this
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1072725/image.png)
how to deal with this type of problem? any guidance will help me alot, because i got bunch of wild value zero like this :( thanks a lott.
the following attachments is my full code, matrix A is k_sup and matrix B is uaa, and matrix C is Fsupt in my line code. input3Dxlsx is my input.
P.S
i tried calculate separately with new script (like the following A*B bottom), copy those matrices from generated excel (so the value is accurate), and the generated value of matrix C is entirely different, like this:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1072730/image.png)
here is the following matrix A and B i copy from generated excel
A = [-3710000000 0 0 0 0 0;
0 -12624305.56 0 0 0 75745833.33;
0 0 -2318750 0 -13912500 0;
0 0 0 -69358333.33 0 0;
0 0 13912500 0 55650000 0;
0 -75745833.33 0 0 0 302983333.3]
B = [0
0
-0.025876011
0
0.004312668
0]
C = A*B
0 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Spreadsheets dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!