Same code but different results

7 visualizaciones (últimos 30 días)
朝捷 侯
朝捷 侯 el 30 de Abr. de 2022
Respondida: Walter Roberson el 30 de Abr. de 2022
I run the same code on both matlab online version and PC version(2021b), but get different output. The PC version works good in every iteration but the online version output "Nan" just after few iterations. Does anyone have any idea why this is happening?

Respuestas (1)

Walter Roberson
Walter Roberson el 30 de Abr. de 2022
MATLAB Online is one release newer (R2022a)
MATLAB Online is Linux based, and uses different high-performance Math libraries than PC uses.
It might be the case that you are using matrices that are badly conditioned, but which might be permitted through in your PC but rejected in MATLAB Online.

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by