-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_InterpolateCSIAndRemoveCSD.m
More file actions
42 lines (35 loc) · 1.48 KB
/
build_InterpolateCSIAndRemoveCSD.m
File metadata and controls
42 lines (35 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
function build_InterpolateCSIAndRemoveCSD
RTW.TargetRegistry.getInstance('reset');
cfg = coder.config('lib');
% cfg.CodeReplacementLibrary = 'PermLogic Replacement';
cfg.GenCodeOnly = true;
cfg.EnableMemcpy = true;
cfg.TargetLang = 'C++';
cfg.CppInterfaceStyle = "Methods";
cfg.CppInterfaceClassName = "CSIPreprocessor";
cfg.DataTypeReplacement = "CoderTypedefs";
cfg.CodeFormattingTool = "Clang-format";
cfg.TargetLangStandard = 'C++11 (ISO)';
cfg.FilePartitionMethod = 'SingleFile';
cfg.DataTypeReplacement = 'CBuiltIn';
cfg.EnableAutoParallelizationReporting = false;
cfg.EnableOpenMP = false;
cfg.LoopUnrollThreshold = 10;
cfg.SaturateOnIntegerOverflow = false;
cfg.EnableImplicitExpansion = false;
cfg.MATLABSourceComments = false;
cfg.InlineBetweenUserAndMathWorksFunctions = 'Always';
cfg.InlineBetweenMathWorksFunctions = 'Always';
cfg.InlineBetweenUserFunctions = 'Always';
cfg.IndentSize = 4;
cfg.ColumnLimit = 120;
cfg.GenerateReport = true;
tic;
cd(fileparts(which(mfilename))); % change the MATLAB working directory to the folder of this file.
system('rm -rf ./codegen');
inputArray = coder.typeof(uint16(0), [100, 1]); % 根据你的需求设置大小
output1 = coder.typeof(0.0, [56, 1]); % 确保输出形状和类型一致
output2 = coder.typeof(0.0, [56, 1]);
codegen -config cfg computePhaseSlopes -args {inputArray} -o computePhaseSlopes_codegen;
toc;
end