Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: evaluating expressions obtained from UI. eval alternative
Date: Sat, 15 Mar 2008 04:00:38 +0000 (UTC)
Organization: Moscow State University
Lines: 18
Message-ID: <frfhl6$6ov$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1205553638 6943 172.30.248.38 (15 Mar 2008 04:00:38 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 15 Mar 2008 04:00:38 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1127783
Xref: news.mathworks.com comp.soft-sys.matlab:457350



I often write user interfaces that require user to input
analytical functions into edit boxes.
But I haven't found a MATLAB function specificially designed
to handle the scenario.

I tried different ways to acoomplish this:
1. I tried the subs function from symbolic math toolbox -
it's roubust, but is veeeery slow ((

2. Now I use eval. But it requires users to input
expressions using non-matrix operators like .+ .* etc.
Moreover, eval is not robust at all: users are able to
execute almost any MATLAB command inside my UI. Yet, eval is
not as fast as I want.

Any suggestions?
TIA