1 function s=char2sym(expr);
\r
2 %CHAR2SYM Input arguments:
\r
3 % 1) expr: An cell (char) array containing expressions.
\r
5 % Converts the cell elements to symbolic expressions.
\r
7 % Toolbox for nonlinear filtering.
\r
8 % Copyright (C) 2005 Jakob Rosén <jakob.rosen@gmail.com>
\r
10 % This program is free software; you can redistribute it and/or
\r
11 % modify it under the terms of the GNU General Public License
\r
12 % as published by the Free Software Foundation; either version 2
\r
13 % of the License, or (at your option) any later version.
\r
15 % This program is distributed in the hope that it will be useful,
\r
16 % but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
17 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
18 % GNU General Public License for more details.
\r
20 % You should have received a copy of the GNU General Public License
\r
21 % along with this program; if not, write to the Free Software
\r
22 % Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
\r
25 for j=1:length(expr);
\r
26 s(j)=sym(char(expr{j}));
\r