IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
ircode_eval2.m
Go to the documentation of this file.
1 %> @ingroup globals codegen
2 %> @file
3 %> @brief Same as @ref ircode_eval() but without the assestion and parameter check.
4 %> @sa ircode_eval.m
5 %
6 %> @param s Piece of code
7 %> @param title Unused at the moment
8 function ircode_eval2(s, title)
9 if nargin < 2
10  title = [];
11 end;
12 flag_add = 1;
13 
14 try
15  evalin('base', s);
16 catch ME
17  disp('Generated code behaved badly');
18  disp('----------------------------');
19  disp(s);
20  rethrow(ME);
21 end;
22 
23 if flag_add
24  ircode_add(s, title);
25 end;
26 
function ircode_add(in s, in title)
function ircode_eval(in s, in title)
Analysis Session (AS) base class.
Definition: as.m:6
function ircode_eval2(in s, in title)