please help with the error

1 Ansicht (letzte 30 Tage)
dav
dav am 13 Okt. 2013
Beantwortet: Walter Roberson am 13 Okt. 2013
I used the code:
a := series(sin(x), x)
and it gave me the error:
Error: "a" was previously used as a variable,
conflicting with its use here as the name of a function or command.
See MATLAB Programming, "How MATLAB Recognizes Function Calls That Use Command Syntax" for details.
Can someone please help me with this?
dav
  2 Kommentare
Jan
Jan am 13 Okt. 2013
This is not Matlab. Do you mean MuPad?
dav
dav am 13 Okt. 2013
no.. I want to get the taylor series expansion of y=(a+bX^2)^0.5
Can you please help me with it

Melden Sie sich an, um zu kommentieren.

Antworten (2)

Image Analyst
Image Analyst am 13 Okt. 2013
There is no := operator in MATLAB. Get rid of the colon.
  2 Kommentare
dav
dav am 13 Okt. 2013
still doesnt work!
Image Analyst
Image Analyst am 13 Okt. 2013
All right, then how can we help? Have you provided anyone with what might be necessary to help you, like error messages, an m-file, or data file? What toolbox is "series()" in? You didn't list your toolboxes in the Product box either.

Melden Sie sich an, um zu kommentieren.


Walter Roberson
Walter Roberson am 13 Okt. 2013
syms x
a = feval(symengine, 'series', sin(x), x);

Community Treasure Hunt

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

Start Hunting!

Translated by