"Ha" wrote in message <k6q8kc$8i4$1@newscl01ah.mathworks.com>...
>
> Backslash seems provide no help. I still get a warning that the matrix is badly scaled or nearly singular and sometimes it gives rise to NaNs.
Then your system is not invertible, or nearly so. Often because you forget to add appropriate constraints, boundary condition to make the problem well-posed. It might also be badly scaled, as the warning message suggests.
You could try to use pinv(), but the problem might lie well before the system was formed.
Bruno
>
> Backslash seems provide no help. I still get a warning that the matrix is badly scaled or nearly singular and sometimes it gives rise to NaNs.
Then your system is not invertible, or nearly so. Often because you forget to add appropriate constraints, boundary condition to make the problem well-posed. It might also be badly scaled, as the warning message suggests.
You could try to use pinv(), but the problem might lie well before the system was formed.
Bruno