maple in 2012a student version solving difference equations (z transforms)

Hello I am trying to use the student versionr2012a for my homework for advanced engineering math. We are studying z transforms. To verify solving difference equations my textbook calls for using the command :
>>maple( ' rsolve( { y(k+2) + y(k+1) - 2*y(k)=1, y(0)=0, y(1)=1} , y(k) ')
I get the error: error using maple (line37) The MAPLE command is not available.
Am I doing something wrong or is there a way to work around this problem? At school this command works fine in an earlier version of matlab. I am not sure what version the school has.
Thanks Dan

 채택된 답변

rsolve is for recurrence equations. There is a MuPAD-level routine rec for representing recurrence equations, and the MuPAD-level solve routine can process them.
Note that these are at the MuPAD level, and do not have direct exposure at the MATLAB level. You need to feval() or evalin() the symbolic engine providing MuPAD code, such as
evalin(symengine, 'solve(x^5-5,x)')

댓글 수: 1

Thanks for the help I will have to play around with it to see how these functions work.

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

추가 답변 (1개)

Andreas Goser
Andreas Goser 2012년 5월 31일

0 개 추천

The product "(Extended) Symbolic Math Toolbox" used the Maple symbolic engine in the past. Not sure exactly, but around 2009 a change was made so that now the MuPad engine is used.
If you have the Symbolic Math Toolbox today ('VER" command) today, you can work with this for symbolic computations.

댓글 수: 2

Sorry for the duplication but I didnt know if it would email you back for notification of my other comment.
I have Symbolic Math Toolbox version 5.8 that was included with the student edition r2012a. You mention that "you can work with this for symbolic computations."
What would the new commands be to replace maple and rsolve in MuPad?
maple( ' rsolve( { y(k+2) + y(k+1) - 2*y(k)=1, y(0)=0, y(1)=1} , y(k) ')
I personally am not practically familiar with this toolbox, I just knew the product history background. If nobody else answers here and the documentation is not helpful enough, you can contact MathWorks Technical Support.

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by