please help with the error

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

Jan
Jan 2013년 10월 13일
This is not Matlab. Do you mean MuPad?
dav
dav 2013년 10월 13일
no.. I want to get the taylor series expansion of y=(a+bX^2)^0.5
Can you please help me with it

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

답변 (2개)

Image Analyst
Image Analyst 2013년 10월 13일

0 개 추천

There is no := operator in MATLAB. Get rid of the colon.

댓글 수: 2

dav
dav 2013년 10월 13일
still doesnt work!
Image Analyst
Image Analyst 2013년 10월 13일
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.

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

Walter Roberson
Walter Roberson 2013년 10월 13일

0 개 추천

syms x
a = feval(symengine, 'series', sin(x), x);

질문:

dav
2013년 10월 13일

답변:

2013년 10월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by