フィルターのクリア

How do I plot the derivative of a function?

2 ビュー (過去 30 日間)
Batuhan Yildiz
Batuhan Yildiz 2022 年 10 月 1 日
回答済み: Sulaymon Eshkabilov 2022 年 10 月 1 日
Already have the derivative 1- (sinx)/(squar(x))-(squar(x))(cos(x)) just don't know how to plot it via code

回答 (3 件)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2022 年 10 月 1 日
Use syms and fplot(), e.g.:
syms x
fplot()
  1 件のコメント
Batuhan Yildiz
Batuhan Yildiz 2022 年 10 月 1 日
What is in the brackets of plot

サインインしてコメントする。


Sulaymon Eshkabilov
Sulaymon Eshkabilov 2022 年 10 月 1 日
編集済み: Sulaymon Eshkabilov 2022 年 10 月 1 日
To plot sin(2*x), e.g.:
syms x
fplot(x, sin(2*x), [-pi, pi]), grid on
xlabel('x'), ylabel('sin(2*x)')
Apply this exercise for your exercise.
  1 件のコメント
Batuhan Yildiz
Batuhan Yildiz 2022 年 10 月 1 日
One last thing what would happend if you had to add x=[1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0] to the codding? What would it look like?

サインインしてコメントする。


Sulaymon Eshkabilov
Sulaymon Eshkabilov 2022 年 10 月 1 日
It is very simple, e.g.:
x = [-3, -2.5 -2 -1 0 1 2 3];
y= sin(2*x);
plot(x, y)

カテゴリ

Help Center および File ExchangeFormula Manipulation and Simplification についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by