Function Matlab graph help

조회 수: 9 (최근 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 CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by