- Use MATLAB R2007a or earlier, with the Extended Symbolic Toolbox -- this is what your textbook assumes you are doing; Or
- Install MATLAB R2007b or later, and then separately purchase and install Maple 11 or later (might require Maple 12, possibly); the Maple installer will (typically) detected that you have MATLAB installed and will give you an opportunity to install Maple as the MATLAB Symbolic interface; if it does not automatically detect MATLAB then there are ways to manually run the installer. The current Maple price for students is about $US100.
Defining integers in Matlab
16 views (last 30 days)
Show older comments
Good evening,
I am in need to define a variable in Matlab as an integer, according to my text book, I have to insert a command that calls a function from Maple in Matlab, but when introducing the commands, I get the following error
Undefined function or variable 'maple'.
I have included a picture of my textbook that explains the procedure.
Am I missing any files or expansion pack? if so, where can I find it?

Thanks!
0 Comments
Answers (1)
Walter Roberson
on 28 May 2017
int() is not for declaring something to be an integer: it is for integrating a formula (calculus)
To use maple() you need to do one of the following:
If you have MATLAB R2007b or later and MATLAB's Symbolic Toolbox, it is possible to call into the newer symbolic engine, MuPAD, to construct piecewise. I show how to do it at https://www.mathworks.com/matlabcentral/answers/325774-generating-piecewise-in-r2016a#answer_255400
If you have MATLAB R2016b or later an MATLAB's Symbolic Toolbox, there is now a direct call to create a piecewise function; see https://www.mathworks.com/help/symbolic/piecewise.html
0 Comments
See Also
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!