An error in my code

조회 수: 1 (최근 30일)
Mayada Almousa
Mayada Almousa 2022년 5월 11일
댓글: VBBV 2022년 5월 16일
Hello everyone!
I hope you all good and healty '')
I write a code and MATLAB says that I have an error and I don't know how to fix it
This is what happens:
Is anyone here knows how to fix that?
Here is the code as a text:
clc
clear
sym x
F= atan(x);
t5= taylor(F,x,'order',5);
t7= taylor(F,x,'order',7);
fplot(x^3/3+x,[-pi pi],'b')
hold on
fplot((2*x^5)/15+x^3/3+x,[-pi pi],'r')
fplot(atan(x),[-pi pi],'g')
hold off
Thank you all '')
  댓글 수: 2
Image Analyst
Image Analyst 2022년 5월 11일
Post code as text. No one is going to type in all that just to help you. And we can't run an image.
Mayada Almousa
Mayada Almousa 2022년 5월 11일
Here is the code:
clc
clear
sym x
F= atan(x);
t5= taylor(F,x,'order',5);
t7= taylor(F,x,'order',7);
fplot(x^3/3+x,[-pi pi],'b')
hold on
fplot((2*x^5)/15+x^3/3+x,[-pi pi],'r')
fplot(atan(x),[-pi pi],'g')
hold off

댓글을 달려면 로그인하십시오.

답변 (1개)

VBBV
VBBV 2022년 5월 11일
편집: VBBV 2022년 5월 11일
clear
syms x % syms
F= atan(x);
t5= taylor(F,x,'order',5);
t7= taylor(F,x,'order',7);
fplot(x^3/3+x,[-pi pi],'b')
hold on
fplot((2*x^5)/15+x^3/3+x,[-pi pi],'r')
fplot(atan(x),[-pi pi],'g')
hold off
  댓글 수: 2
Mayada Almousa
Mayada Almousa 2022년 5월 11일
Thank you so much '')
VBBV
VBBV 2022년 5월 16일
Welcome, if it solved the problem, please accept the answer

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by