フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Need help understanding error PLEASE

1 回表示 (過去 30 日間)
Triggs
Triggs 2020 年 4 月 27 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
k

回答 (1 件)

Srivardhan Gadila
Srivardhan Gadila 2020 年 4 月 30 日
Below is the code from lines 142-147
Fmax=max(abs(F))+1;
subplot(2,1,1)
plot(x,U, '-ob '); axis([0 x(n) -UMax UMax]); drawnow;
xlabel(' x nodes '), ylabel(' Temperature ')
subplot(2,1,2)
plot(xc,F, '--V'); axis([0 x(n) -Fmax Fmax]); drawnow;
When running the code, in the 5th iteration the value of Fmax is NaN and Fmax is used in line 144 in the axis limits which is causing the error.
Try checking the value of Fmax in each iteration by removing the semicolon in line 142 i.e.,
Fmax=max(abs(F))+1

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by