本文整理汇总了C++中sf_mex_dup函数的典型用法代码示例。如果您正苦于以下问题:C++ sf_mex_dup函数的具体用法?C++ sf_mex_dup怎么用?C++ sf_mex_dup使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了sf_mex_dup函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: c2_b_emlrt_marshallIn
static void c2_b_emlrt_marshallIn(SFc2_gesamtmodellInstanceStruct *chartInstance,
const mxArray *c2_u, const emlrtMsgIdentifier *c2_parentId, real_T c2_y[3])
{
real_T c2_dv1[3];
int32_T c2_i18;
sf_mex_import(c2_parentId, sf_mex_dup(c2_u), c2_dv1, 1, 0, 0U, 1, 0U, 1, 3);
for (c2_i18 = 0; c2_i18 < 3; c2_i18++) {
c2_y[c2_i18] = c2_dv1[c2_i18];
}
sf_mex_destroy(&c2_u);
}
开发者ID:matwelter,项目名称:Masterthesis,代码行数:12,代码来源:c2_gesamtmodell.c
示例2: c19_emlrt_marshallIn
static real_T c19_emlrt_marshallIn(SFc19_EP_IdleRandMergInstanceStruct
*chartInstance, const mxArray *c19_stateOver, const char_T *c19_identifier)
{
real_T c19_y;
emlrtMsgIdentifier c19_thisId;
c19_thisId.fIdentifier = c19_identifier;
c19_thisId.fParent = NULL;
c19_y = c19_b_emlrt_marshallIn(chartInstance, sf_mex_dup(c19_stateOver),
&c19_thisId);
sf_mex_destroy(&c19_stateOver);
return c19_y;
}
开发者ID:maryamsab,项目名称:realact,代码行数:12,代码来源:c19_EP_IdleRandMerg.c
示例3: c2_c_emlrt_marshallIn
static uint8_T c2_c_emlrt_marshallIn(SFc2_DemoIdleInstanceStruct *chartInstance,
const mxArray *c2_b_is_active_c2_DemoIdle, const char_T *c2_identifier)
{
uint8_T c2_y;
emlrtMsgIdentifier c2_thisId;
c2_thisId.fIdentifier = c2_identifier;
c2_thisId.fParent = NULL;
c2_y = c2_d_emlrt_marshallIn(chartInstance, sf_mex_dup
(c2_b_is_active_c2_DemoIdle), &c2_thisId);
sf_mex_destroy(&c2_b_is_active_c2_DemoIdle);
return c2_y;
}
开发者ID:maryamsab,项目名称:realact,代码行数:12,代码来源:c2_DemoIdle.c
示例4: c2_b_emlrt_marshallIn
static void c2_b_emlrt_marshallIn(SFc2_QuadsimInstanceStruct *chartInstance,
const mxArray *c2_u, const emlrtMsgIdentifier *c2_parentId, real_T c2_y[12])
{
real_T c2_dv1[12];
int32_T c2_i8;
sf_mex_import(c2_parentId, sf_mex_dup(c2_u), c2_dv1, 1, 0, 0U, 1, 0U, 2, 1, 12);
for (c2_i8 = 0; c2_i8 < 12; c2_i8++) {
c2_y[c2_i8] = c2_dv1[c2_i8];
}
sf_mex_destroy(&c2_u);
}
开发者ID:Maktek-Quadrotor-Group,项目名称:maktek-quadrotor,代码行数:12,代码来源:c2_Quadsim.c
示例5: sf_mex_import
static uint8_T c3_e_emlrt_marshallIn
(SFc3_ARP_02_RPSsmile_GloveSHOREInstanceStruct *chartInstance, const mxArray
*c3_u, const emlrtMsgIdentifier *c3_parentId)
{
uint8_T c3_y;
uint8_T c3_u0;
(void)chartInstance;
sf_mex_import(c3_parentId, sf_mex_dup(c3_u), &c3_u0, 1, 3, 0U, 0, 0U, 0);
c3_y = c3_u0;
sf_mex_destroy(&c3_u);
return c3_y;
}
开发者ID:maryamsab,项目名称:realact,代码行数:12,代码来源:c3_ARP_02_RPSsmile_GloveSHORE.c
示例6: c2_d_emlrt_marshallIn
static void c2_d_emlrt_marshallIn(SFc2_gesamtmodellInstanceStruct *chartInstance,
const mxArray *c2_u, const emlrtMsgIdentifier *c2_parentId, real_T c2_y[9])
{
real_T c2_dv2[9];
int32_T c2_i28;
sf_mex_import(c2_parentId, sf_mex_dup(c2_u), c2_dv2, 1, 0, 0U, 1, 0U, 2, 3, 3);
for (c2_i28 = 0; c2_i28 < 9; c2_i28++) {
c2_y[c2_i28] = c2_dv2[c2_i28];
}
sf_mex_destroy(&c2_u);
}
开发者ID:matwelter,项目名称:Masterthesis,代码行数:12,代码来源:c2_gesamtmodell.c
示例7: c3_emlrt_marshallIn
static real_T c3_emlrt_marshallIn(SFc3_aircraft_2InstanceStruct *chartInstance,
const mxArray *c3_b_etaLat, const char_T *c3_identifier)
{
real_T c3_y;
emlrtMsgIdentifier c3_thisId;
c3_thisId.fIdentifier = c3_identifier;
c3_thisId.fParent = NULL;
c3_y = c3_b_emlrt_marshallIn(chartInstance, sf_mex_dup(c3_b_etaLat),
&c3_thisId);
sf_mex_destroy(&c3_b_etaLat);
return c3_y;
}
开发者ID:tharunprasanth,项目名称:DG_sim,代码行数:12,代码来源:c3_aircraft_2.c
示例8: set_sim_state_c1_minimalist14
static void set_sim_state_c1_minimalist14(const mxArray *c1_st)
{
const mxArray *c1_u;
const mxArray *c1_b_is_active_c1_minimalist14;
uint8_T c1_u0;
uint8_T c1_y;
const mxArray *c1_c_is_active_c1_minimalist14;
uint8_T c1_u1;
uint8_T c1_b_y;
const mxArray *c1_b_setSimStateSideEffectsInfo;
const mxArray *c1_c_y = NULL;
c1_u = sf_mex_dup(c1_st);
c1_b_is_active_c1_minimalist14 = sf_mex_dup(sf_mex_getcell(c1_u, 0));
sf_mex_import("is_active_c1_minimalist14", sf_mex_dup
(c1_b_is_active_c1_minimalist14), &c1_u0, 1, 3, 0U, 0, 0U, 0);
c1_y = c1_u0;
sf_mex_destroy(&c1_b_is_active_c1_minimalist14);
chartInstance.c1_is_active_c1_minimalist14 = c1_y;
c1_c_is_active_c1_minimalist14 = sf_mex_dup(sf_mex_getcell(c1_u, 1));
sf_mex_import("is_c1_minimalist14", sf_mex_dup(c1_c_is_active_c1_minimalist14),
&c1_u1, 1, 3, 0U, 0, 0U, 0);
c1_b_y = c1_u1;
sf_mex_destroy(&c1_c_is_active_c1_minimalist14);
chartInstance.c1_is_c1_minimalist14 = c1_b_y;
c1_b_setSimStateSideEffectsInfo = sf_mex_dup(sf_mex_getcell(c1_u, 2));
c1_c_y = NULL;
sf_mex_assign(&c1_c_y, sf_mex_duplicatearraysafe
(&c1_b_setSimStateSideEffectsInfo));
sf_mex_destroy(&c1_b_setSimStateSideEffectsInfo);
sf_mex_assign(&chartInstance.c1_setSimStateSideEffectsInfo, c1_c_y);
sf_mex_destroy(&c1_u);
chartInstance.c1_doSetSimStateSideEffects = 1U;
c1_update_debugger_state_c1_minimalist14();
sf_mex_destroy(&c1_st);
}
开发者ID:djulzz,项目名称:MPC-565,代码行数:35,代码来源:c1_minimalist14.c
示例9: set_sim_state_c1_my_demo_ref
static void set_sim_state_c1_my_demo_ref(SFc1_my_demo_refInstanceStruct
*chartInstance, const mxArray *c1_st)
{
const mxArray *c1_u;
real_T *c1_stop;
real_T *c1_x_g;
real_T *c1_y_g;
c1_stop = (real_T *)ssGetOutputPortSignal(chartInstance->S, 3);
c1_y_g = (real_T *)ssGetOutputPortSignal(chartInstance->S, 2);
c1_x_g = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1);
chartInstance->c1_doneDoubleBufferReInit = TRUE;
c1_u = sf_mex_dup(c1_st);
*c1_stop = c1_c_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell(c1_u,
0)), "stop");
*c1_x_g = c1_c_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell(c1_u,
1)), "x_g");
*c1_y_g = c1_c_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell(c1_u,
2)), "y_g");
chartInstance->c1_i = c1_emlrt_marshallIn(chartInstance, sf_mex_dup
(sf_mex_getcell(c1_u, 3)), "i");
chartInstance->c1_is_active_c1_my_demo_ref = c1_g_emlrt_marshallIn
(chartInstance, sf_mex_dup(sf_mex_getcell(c1_u, 4)),
"is_active_c1_my_demo_ref");
sf_mex_destroy(&c1_u);
c1_update_debugger_state_c1_my_demo_ref(chartInstance);
sf_mex_destroy(&c1_st);
}
开发者ID:OneTwoSteph,项目名称:Work,代码行数:27,代码来源:c1_my_demo_ref.c
示例10: c25_sf_marshallIn
static void c25_sf_marshallIn(void *chartInstanceVoid, const mxArray
*c25_mxArrayInData, const char_T *c25_varName, void *c25_outData)
{
const mxArray *c25_a;
const char_T *c25_identifier;
emlrtMsgIdentifier c25_thisId;
real_T c25_y[6];
int32_T c25_i10;
SFc25_CusakisME4901arcs2InstanceStruct *chartInstance;
chartInstance = (SFc25_CusakisME4901arcs2InstanceStruct *)chartInstanceVoid;
c25_a = sf_mex_dup(c25_mxArrayInData);
c25_identifier = c25_varName;
c25_thisId.fIdentifier = c25_identifier;
c25_thisId.fParent = NULL;
c25_b_emlrt_marshallIn(chartInstance, sf_mex_dup(c25_a), &c25_thisId, c25_y);
sf_mex_destroy(&c25_a);
for (c25_i10 = 0; c25_i10 < 6; c25_i10++) {
(*(real_T (*)[6])c25_outData)[c25_i10] = c25_y[c25_i10];
}
sf_mex_destroy(&c25_mxArrayInData);
}
开发者ID:alexgrompone,项目名称:Cusakis,代码行数:22,代码来源:c25_CusakisME4901arcs2.c
示例11: c11_f_emlrt_marshallIn
static uint8_T c11_f_emlrt_marshallIn(SFc11_Batman_CodeInstanceStruct
*chartInstance, const mxArray *c11_b_is_active_c11_Batman_Code, const char_T
*c11_identifier)
{
uint8_T c11_y;
emlrtMsgIdentifier c11_thisId;
c11_thisId.fIdentifier = c11_identifier;
c11_thisId.fParent = NULL;
c11_y = c11_g_emlrt_marshallIn(chartInstance, sf_mex_dup
(c11_b_is_active_c11_Batman_Code), &c11_thisId);
sf_mex_destroy(&c11_b_is_active_c11_Batman_Code);
return c11_y;
}
开发者ID:M118-project,项目名称:M118_project,代码行数:13,代码来源:c11_Batman_Code.c
示例12: c7_d_emlrt_marshallIn
static uint8_T c7_d_emlrt_marshallIn(SFc7_ekffedepreInstanceStruct
*chartInstance, const mxArray *c7_b_is_active_c7_ekffedepre, const char_T
*c7_identifier)
{
uint8_T c7_y;
emlrtMsgIdentifier c7_thisId;
c7_thisId.fIdentifier = c7_identifier;
c7_thisId.fParent = NULL;
c7_y = c7_e_emlrt_marshallIn(chartInstance, sf_mex_dup
(c7_b_is_active_c7_ekffedepre), &c7_thisId);
sf_mex_destroy(&c7_b_is_active_c7_ekffedepre);
return c7_y;
}
开发者ID:lovewubo,项目名称:foxg20_ahrs_1xx,代码行数:13,代码来源:c7_ekffedepre.c
示例13: c6_e_emlrt_marshallIn
static uint8_T c6_e_emlrt_marshallIn(SFc6_Demo_KinectInstanceStruct
*chartInstance, const mxArray *c6_b_is_active_c6_Demo_Kinect, const char_T
*c6_identifier)
{
uint8_T c6_y;
emlrtMsgIdentifier c6_thisId;
c6_thisId.fIdentifier = c6_identifier;
c6_thisId.fParent = NULL;
c6_y = c6_f_emlrt_marshallIn(chartInstance, sf_mex_dup
(c6_b_is_active_c6_Demo_Kinect), &c6_thisId);
sf_mex_destroy(&c6_b_is_active_c6_Demo_Kinect);
return c6_y;
}
开发者ID:maryamsab,项目名称:realact,代码行数:13,代码来源:c6_Demo_Kinect.c
示例14: c10_e_emlrt_marshallIn
static uint8_T c10_e_emlrt_marshallIn(SFc10_experiment_lib2InstanceStruct
*chartInstance, const mxArray *c10_b_is_active_c10_experiment_lib2, const
char_T *c10_identifier)
{
uint8_T c10_y;
emlrtMsgIdentifier c10_thisId;
c10_thisId.fIdentifier = c10_identifier;
c10_thisId.fParent = NULL;
c10_y = c10_f_emlrt_marshallIn(chartInstance, sf_mex_dup
(c10_b_is_active_c10_experiment_lib2), &c10_thisId);
sf_mex_destroy(&c10_b_is_active_c10_experiment_lib2);
return c10_y;
}
开发者ID:manelvelasco,项目名称:Matlab-Library,代码行数:13,代码来源:c10_experiment_lib2.c
示例15: c1_c_emlrt_marshallIn
static void c1_c_emlrt_marshallIn(SFc1_newtons_cradleInstanceStruct
*chartInstance, const mxArray *c1_u, const emlrtMsgIdentifier *c1_parentId,
real_T c1_y[3])
{
real_T c1_dv1[3];
int32_T c1_i4;
sf_mex_import(c1_parentId, sf_mex_dup(c1_u), c1_dv1, 1, 0, 0U, 1, 0U, 1, 3);
for (c1_i4 = 0; c1_i4 < 3; c1_i4++) {
c1_y[c1_i4] = c1_dv1[c1_i4];
}
sf_mex_destroy(&c1_u);
}
开发者ID:exodaniel,项目名称:Vitrified-Code,代码行数:13,代码来源:c1_newtons_cradle.c
示例16: c6_b_sf_marshallIn
static void c6_b_sf_marshallIn(void *chartInstanceVoid, const mxArray
*c6_mxArrayInData, const char_T *c6_varName, void *c6_outData)
{
const mxArray *c6_xab;
const char_T *c6_identifier;
emlrtMsgIdentifier c6_thisId;
real_T c6_y[2];
int32_T c6_i14;
SFc6_motor_controlInstanceStruct *chartInstance;
chartInstance = (SFc6_motor_controlInstanceStruct *)chartInstanceVoid;
c6_xab = sf_mex_dup(c6_mxArrayInData);
c6_identifier = c6_varName;
c6_thisId.fIdentifier = c6_identifier;
c6_thisId.fParent = NULL;
c6_c_emlrt_marshallIn(chartInstance, sf_mex_dup(c6_xab), &c6_thisId, c6_y);
sf_mex_destroy(&c6_xab);
for (c6_i14 = 0; c6_i14 < 2; c6_i14++) {
(*(real_T (*)[2])c6_outData)[c6_i14] = c6_y[c6_i14];
}
sf_mex_destroy(&c6_mxArrayInData);
}
开发者ID:drivkin,项目名称:Motor-simulation-and-reading,代码行数:22,代码来源:c6_motor_control.c
示例17: c6_d_emlrt_marshallIn
static void c6_d_emlrt_marshallIn(SFc6_motor_controlInstanceStruct
*chartInstance, const mxArray *c6_u, const emlrtMsgIdentifier *c6_parentId,
real_T c6_y[4])
{
real_T c6_dv1[4];
int32_T c6_i21;
sf_mex_import(c6_parentId, sf_mex_dup(c6_u), c6_dv1, 1, 0, 0U, 1, 0U, 2, 2, 2);
for (c6_i21 = 0; c6_i21 < 4; c6_i21++) {
c6_y[c6_i21] = c6_dv1[c6_i21];
}
sf_mex_destroy(&c6_u);
}
开发者ID:drivkin,项目名称:Motor-simulation-and-reading,代码行数:13,代码来源:c6_motor_control.c
示例18: c35_d_emlrt_marshallIn
static uint8_T c35_d_emlrt_marshallIn(SFc35_Expriment_PoseInstanceStruct
*chartInstance, const mxArray *c35_b_tp_stateCreatePawn, const char_T
*c35_identifier)
{
uint8_T c35_y;
emlrtMsgIdentifier c35_thisId;
c35_thisId.fIdentifier = c35_identifier;
c35_thisId.fParent = NULL;
c35_y = c35_e_emlrt_marshallIn(chartInstance, sf_mex_dup
(c35_b_tp_stateCreatePawn), &c35_thisId);
sf_mex_destroy(&c35_b_tp_stateCreatePawn);
return c35_y;
}
开发者ID:maryamsab,项目名称:realact,代码行数:13,代码来源:c35_Expriment_Pose.c
示例19: c10_sf_marshallIn
static void c10_sf_marshallIn(void *chartInstanceVoid, const mxArray
*c10_mxArrayInData, const char_T *c10_varName, void *c10_outData)
{
const mxArray *c10_out;
const char_T *c10_identifier;
emlrtMsgIdentifier c10_thisId;
real_T c10_y[4];
int32_T c10_i10;
SFc10_experiment_lib2InstanceStruct *chartInstance;
chartInstance = (SFc10_experiment_lib2InstanceStruct *)chartInstanceVoid;
c10_out = sf_mex_dup(c10_mxArrayInData);
c10_identifier = c10_varName;
c10_thisId.fIdentifier = c10_identifier;
c10_thisId.fParent = NULL;
c10_b_emlrt_marshallIn(chartInstance, sf_mex_dup(c10_out), &c10_thisId, c10_y);
sf_mex_destroy(&c10_out);
for (c10_i10 = 0; c10_i10 < 4; c10_i10++) {
(*(real_T (*)[4])c10_outData)[c10_i10] = c10_y[c10_i10];
}
sf_mex_destroy(&c10_mxArrayInData);
}
开发者ID:manelvelasco,项目名称:Matlab-Library,代码行数:22,代码来源:c10_experiment_lib2.c
示例20: c35_e_sf_marshallIn
static void c35_e_sf_marshallIn(void *chartInstanceVoid, const mxArray
*c35_mxArrayInData, const char_T *c35_varName, void *c35_outData)
{
const mxArray *c35_In2;
const char_T *c35_identifier;
emlrtMsgIdentifier c35_thisId;
real_T c35_y[1000];
int32_T c35_i21;
SFc35_Expriment_PoseInstanceStruct *chartInstance;
chartInstance = (SFc35_Expriment_PoseInstanceStruct *)chartInstanceVoid;
c35_In2 = sf_mex_dup(c35_mxArrayInData);
c35_identifier = c35_varName;
c35_thisId.fIdentifier = c35_identifier;
c35_thisId.fParent = NULL;
c35_f_emlrt_marshallIn(chartInstance, sf_mex_dup(c35_In2), &c35_thisId, c35_y);
sf_mex_destroy(&c35_In2);
for (c35_i21 = 0; c35_i21 < 1000; c35_i21++) {
(*(real_T (*)[1000])c35_outData)[c35_i21] = c35_y[c35_i21];
}
sf_mex_destroy(&c35_mxArrayInData);
}
开发者ID:maryamsab,项目名称:realact,代码行数:22,代码来源:c35_Expriment_Pose.c
注:本文中的sf_mex_dup函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论