Be the first to rate this file! 24 downloads (last 30 days) File Size: 4.64 KB File ID: #22054

evalf.m v2.0 (Sep, 2009)

by Carlos Adrian Vargas Aguilera

 

10 Nov 2008 (Updated 21 Sep 2009)

Code covered by the BSD License  

Evaluates any function (handle, anonymous, name, full-name) even if not in the MATLAB PATH!

Download Now | Watch this File

File Information
Description

FEVAL does not work correctly with:
a) anonymous functions
b) function specifyed by its full-name
c) functions outside MATLAB's PATH.

This program resolves this problems and adds new functionalities:
d) run a function with a given directory as current, different to the current one (PWD).
e) run an script outside the PATH and getting any variable definition on MATLAB workspace (new, Sep 2009)

Just try:
>> evalf -C:\ ls
to get a list of files on Windows Root.

The file includes many others examples. I tried to make it work on almost all previous MATLAB releases.

Enjoy it!
Any comments or bug reports would be very appreciated!

MATLAB release MATLAB 7.7 (R2008b)
Zip File Content  
Other Files evalf.m,
license.txt
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
21 Sep 2009

v2.0 Fixed bug with reading name file and extension. Now works with scripts. Changed help, comments and variables names.

Tag Activity for this File
Tag Applied By Date/Time
utilities Cristina McIntire 11 Nov 2008 11:51:06
path Cristina McIntire 11 Nov 2008 11:51:15
anonymous function Cristina McIntire 11 Nov 2008 11:51:37
anonymous Carlos Adrian Vargas Aguilera 11 Nov 2008 11:51:48
run Carlos Adrian Vargas Aguilera 11 Nov 2008 11:51:48
feval Carlos Adrian Vargas Aguilera 11 Nov 2008 11:51:48
handle Carlos Adrian Vargas Aguilera 11 Nov 2008 11:51:48
pwd Carlos Adrian Vargas Aguilera 11 Nov 2008 11:51:48
cd Carlos Adrian Vargas Aguilera 11 Nov 2008 11:51:48
utilities Carlos Adrian Vargas Aguilera 11 Nov 2008 11:51:48
path Carlos Adrian Vargas Aguilera 11 Nov 2008 11:51:48
eval Carlos Adrian Vargas Aguilera 21 Sep 2009 11:41:20
evalin Carlos Adrian Vargas Aguilera 21 Sep 2009 11:41:20
base Carlos Adrian Vargas Aguilera 21 Sep 2009 11:41:20
func2str Carlos Adrian Vargas Aguilera 21 Sep 2009 11:41:20
str2func Carlos Adrian Vargas Aguilera 21 Sep 2009 11:41:20
function Carlos Adrian Vargas Aguilera 21 Sep 2009 11:41:20
script Carlos Adrian Vargas Aguilera 21 Sep 2009 11:41:20
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com