Hi, I would like to ask if my answer is correct or not, here is the question.
1 回表示 (過去 30 日間)
古いコメントを表示
Erwin Koman
2015 年 6 月 27 日
コメント済み: Erwin Koman
2015 年 6 月 27 日
Here is my Code
% Graphical method to solve x.^4 + x.^3 - 2*x.^2 +1
x = -5:.1:5;
f = inline('x.^4 + x.^3 - 2*x.^2 +1');
plot(x,f(x))
xlabel('x');ylabel('f(x)')
grid;zoom on
0 件のコメント
採用された回答
Salaheddin Hosseinzadeh
2015 年 6 月 27 日
編集済み: Salaheddin Hosseinzadeh
2015 年 6 月 27 日
Hi,
Looks alright.
You can use xlim, ylim to limit the view and see the zero crossing location better, however assuming that we don't know where is the zero then you can manually zoom to find it or
ylim([-0.2,0.2]); %this helps you see the zero crossing better
Good luck ;)
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Graphics Object Programming についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!