returning "NaN" as results

Help!! I'm writing a code for Gauss Elimination Method, but my array of returned x(i) gives the result:
ans =
NaN
NaN
NaN
NaN
NaN
I looked online but still can't find any useful solutions, does someone know any quick way of fixing this?

4 件のコメント

Cedric
Cedric 2013 年 1 月 15 日
Could you show us the code?
Walter Roberson
Walter Roberson 2013 年 1 月 15 日
ZhenQi
ZhenQi 2013 年 1 月 15 日
I used this person's code: http://www.youtube.com/watch?v=-W_XzoBwiSY to try to find the solution for a = [1 1 -1 1 -1 2; 2 2 1 -1 1 4; 3 1 -3 -2 3 8; 4 1 -1 4 -5 16; 16 -1 1 -1 -1 32] with n = 5
ZhenQi
ZhenQi 2013 年 1 月 15 日
Re: Walter Roberson: What do you mean?

回答 (0 件)

この質問は閉じられています。

質問済み:

2013 年 1 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by