core/matlab/examples/mex/mexeval.m

00001 %MEXEVAL Execute string containing MATLAB expression.
00002 %   MEXEVAL(s), where s is a string, causes MATLAB to execute
00003 %   the string as an expression or statement.
00004 %
00005 %   MEXEVAL(s1,s2) provides the ability to catch errors.  It
00006 %   execute string s1 and returns if the operation was 
00007 %   successful.  If the operation generates an error,
00008 %   string s2 is evaluated before returning.  Think of this
00009 %   MEXEVAL('try','catch')
00010 %
00011 %   [X,Y,Z,...] = MEXEVAL(s) returns output arguments from the
00012 %   expression in string s. [note: this is a bug!!]
00013 %
00014 %   The input strings to MEXEVAL are often created by
00015 %   concatenating substrings and variables inside square
00016 %   brackets.
00017 %
00018 %   See also MEXFEVAL.
00019 
00020 %   MEX-File function.
00021 
00022 % Copyright 1984-1996 The MathWorks, Inc.
00023 % All Rights Reserved.
00024 % $Revision: 1.1 $
00025 

GridLAB-DTM Version 1.0
An open-source project initiated by the US Department of Energy