3 % @brief MATLAB Coder script to generate MEX functions
for fj_
module.
5 % This script generates MEX (MATLAB Executable) versions of fj_ functions
6 % for improved performance. It configures the code generation settings
7 % and specifies the expected input types.
9 % See also CODER, CODER.CONFIG, CODER.TYPEOF, CODEGEN.
13%% Create configuration object of class 'coder.CodeConfig'.
14cfg = coder.config('mex','ecoder',false);
15cfg.GenerateReport =
false;
16cfg.ReportPotentialDifferences =
false;
17cfg.GenCodeOnly =
false;
20scal_type = coder.typeof(0);
21vec_type = coder.typeof(0,[1 Inf],[0 1]);
22str_type = coder.typeof(
'a', [1 Inf], [0 1]);
27codegen -config cfg fj_harmonic -args {scal_type}
28codegen -config cfg fj_respt_2way -args {scal_type, scal_type}
29codegen -config cfg fj_respt_vm -args {scal_type, scal_type, scal_type}
30codegen -config cfg fj_respt_nt -args {scal_type, scal_type, scal_type}
31codegen -config cfg fj_respt_varki -args {scal_type, scal_type, scal_type}
32codegen -config cfg fj_bounds -args {scal_type, scal_type, scal_type}
33codegen -config cfg fj_rmax -args {scal_type, scal_type, scal_type}
34codegen -config cfg fj_synch_delay -args {scal_type, scal_type}
35codegen -config cfg fj_sm_tput -args {scal_type, scal_type}
37% Approximation Functions
38codegen -config cfg fj_xmax_approx -args {scal_type, scal_type, scal_type, str_type}
39codegen -config cfg fj_xmax_2 -args {scal_type, scal_type}
40codegen -config cfg fj_xmax_exp -args {scal_type, scal_type}
41codegen -config cfg fj_xmax_erlang -args {scal_type, scal_type, scal_type}
42codegen -config cfg fj_xmax_hyperexp -args {scal_type, scal_type, scal_type, scal_type}
43codegen -config cfg fj_xmax_pareto -args {scal_type, scal_type, scal_type}
44codegen -config cfg fj_xmax_normal -args {scal_type, scal_type, scal_type, str_type}
45codegen -config cfg fj_xmax_emma -args {scal_type, scal_type, str_type} % param assumed scalar
for exp
47% Complex/Variant Functions
48codegen -config cfg fj_rmax_evd -args {scal_type, scal_type, scal_type, scal_type}
49codegen -config cfg fj_rmax_erlang -args {scal_type, scal_type, scal_type, scal_type}
50codegen -config cfg fj_gk_bound -args {scal_type, str_type}
51codegen -config cfg fj_char_max -args {scal_type, vec_type, str_type}