An error in my code

4 visualizaciones (últimos 30 días)
Mayada Almousa
Mayada Almousa el 11 de Mayo de 2022
Comentada: VBBV el 16 de Mayo de 2022
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 comentarios
Image Analyst
Image Analyst el 11 de Mayo de 2022
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 el 11 de Mayo de 2022
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

Iniciar sesión para comentar.

Respuestas (1)

VBBV
VBBV el 11 de Mayo de 2022
Editada: VBBV el 11 de Mayo de 2022
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 comentarios
Mayada Almousa
Mayada Almousa el 11 de Mayo de 2022
Thank you so much '')
VBBV
VBBV el 16 de Mayo de 2022
Welcome, if it solved the problem, please accept the answer

Iniciar sesión para comentar.

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by