Products & Services Solutions Academia Support User Community Company

Learn more about Symbolic Math Toolbox   

getVar - Get variable from MuPAD notebook

Syntax

y = getVar(nb,'z')

Description

y = getVar(nb,'z') assigns the symbolic expression z in the MuPAD notebook nb to a symbolic variable y in the MATLAB workspace.

Example

mpnb = mupad;
% make a variable f:=x^2 in the MuPAD notebook
f = getVar(mpnb,'f')

f is a symbolic variable in the MATLAB workspace, with value x^2.

See Also

mupad, setVar

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS