Function Matlab graph help

1 回表示 (過去 30 日間)
Apostolos Parzialis
Apostolos Parzialis 2020 年 12 月 15 日
コメント済み: KSSV 2020 年 12 月 15 日
Hello! I am new to Matlab and I was wondering if you could help me understand how to insert the function below in Matlab platform and how to create a graph based on that function. Thanks
in [-2,2]
  1 件のコメント
KSSV
KSSV 2020 年 12 月 15 日
This is very basic.....what have you tried?

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

採用された回答

SHIVAM KUMAR
SHIVAM KUMAR 2020 年 12 月 15 日
編集済み: SHIVAM KUMAR 2020 年 12 月 15 日
This shall be done in a script or even in command window.
x=-2:0.1:2 ; %makes an array for x with values -2 to 2 with increment of 0.01
y= exp( (sin(x)).^3 ) + x.^6-2*x.^4 - x.^3 - 1; %The function inplementation
plot(x,y);
xlabel("X values");
ylabel("f(x) values");
If this is fine then accept the answer or you can comment if you need anything esle/more.
  1 件のコメント
SHIVAM KUMAR
SHIVAM KUMAR 2020 年 12 月 15 日
I hope this is enough .

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by