Project

General

Profile

Download (482 Bytes) Statistics
| Branch: | Tag: | Revision:
1
% Create the Legacy Code Tool data structure
2
def = legacy_code('initialize');
3

    
4
% Populate the data struture
5
def.SourceFiles = {'mydouble.c'};
6
def.HeaderFiles = {'mydouble.h'};
7
def.SFunctionName = 'legacy_mydouble';
8
def.OutputFcnSpec = 'int8 y1 = mydouble(int8 u1, int8 u2)';
9
def.SampleTime = [-1,0];
10

    
11

    
12
% Generate the S-function
13
legacy_code('sfcn_cmex_generate', def);
14

    
15
% Compile the MEX-file
16
legacy_code('compile', def);
17

    
18
% Generate a TLC-file
19
legacy_code('sfcn_tlc_generate', def);
(4-4/4)