1. Catalogs
  2. The MathWorks
  3. C and Fortran API Reference

C and Fortran API Reference
1 /263Pages

C and Fortran API Reference

C and Fortran API Reference
1 /263Pages

Catalog excerpts

C and Fortran API Reference-11

MXArrayManipulation mxCreateLogicalMatrix(C) Create2-D,logical > mxArray initializedto > falsemxCreateLogicalScalar(C) Createscalar,logical > mxArray initializedto > falsemxCreateNumericArray(CandFortran) CreateunpopulatedN-Dnumeric > mxArraymxCreateNumericMatrix(CandFortran) Createnumericmatrixandinitializedataelementsto0 > mxCreateSparse(CandFortran) Create2-Dunpopulatedsparse > mxArraymxCreateSparseLogicalMatrix(C) Createunpopulated2-D,sparse,logical > mxArraymxCreateString(CandFortran) Create > 1 -by- > N string > mxArray initializedtospecifiedstring > mxCreateStructArray(CandFortran) CreateunpopulatedN-Dstructure...

 Open the catalog to page 11
C and Fortran API Reference-15

MXArrayManipulation mxMalloc(CandFortran) AllocatedynamicmemoryusingMATLABmemorymanager > mxRealloc(CandFortran) Reallocatememory > mxRemoveField(CandFortran) Removefieldfromstructurearray > mxSetCell(CandFortran) Setvalueofonecellof > mxArraymxSetClassName(C) ConvertstructurearraytoMATLABobjectarray > mxSetData(CandFortran) Setpointertodata > mxSetDimensions(CandFortran) Modifynumberofdimensionsandsizeofeachdimension > mxSetField(CandFortran) Setstructurearrayfield,givenfield nameandindex > mxSetFieldByNumber(CandFortran) Setstructurearrayfield,givenfieldnumberandindex > mxSetImagData(CandFortran)...

 Open the catalog to page 15
C and Fortran API Reference-17

MATLAB Engine mexPrintf(CandFortran) ANSI > ή C > printf -styleoutputroutine > mexPutVariable(CandFortran) Copy > mxArray fromMEX-functionintospecifiedworkspace > mexSet(C) SetvalueofspecifiedHandle Graphicsproperty > mexSetTrapFlag(CandFortran) Controlresponseof > mexCallMATLAB toerrors > mexUnlock(CandFortran) AllowMEX-filetobeclearedfrom memory > mexWarnMsgIdAndTxt(CandFortran) Issuewarningmessagewithidentifier > mexWarnMsgTxt(CandFortran) Issuewarningmessage > engClose(CandFortran) QuitMATLAB > ή enginesession > engEvalString(CandFortran) Evaluateexpressioninstring > engGetVariable(CandFortran)...

 Open the catalog to page 17
C and Fortran API Reference-18

APIReference engPutVariable(CandFortran) PutvariablesintoMATLABengineworkspace > engSetVisible(C) ShoworhideMATLABengine session >

 Open the catalog to page 18
C and Fortran API Reference-33

Note Thebufferreturnedby > engEvalString isnotguaranteedtobe > NULL terminated. >

 Open the catalog to page 33
C and Fortran API Reference-79

See > mexfunction.c inthe > mex subdirectoryofthe > examples directory Օ > phonebook.c inthe > refbook subdirectoryofthe > examples directory. > mexErrMsgIdAndTxt , > mexErrMsgTxt , > mexWarnMsgIdAndTxt , > mexWarnMsgTxt

 Open the catalog to page 79
C and Fortran API Reference-84

2 ThesecondMEX-fileiscalledwiththe > trapflag initializedto > withinthatfile. > 3 WhenthesecondMEX-fileexits,thesavedvalueofthe > trapflag inthefirstMEX-fileisrestoredwithinthatfile. > See > mexsettrapflag.c inthe > mex subdirectoryofthe > examples directory. >

 Open the catalog to page 84
C and Fortran API Reference-105

Various > mx* callsrequireorreturnan > mxClassID argument. > mxClassID identifiesthewayinwhichthe > mxArray representsitsdataelements. > See > explore.c inthe > mex subdirectoryofthe > examples directory. >

 Open the catalog to page 105
C and Fortran API Reference-164

> mxgeteps.c and > mxisfinite.c inthe > mx subdirectoryofthe > examples directory >

 Open the catalog to page 164
C and Fortran API Reference-180

> mxsetdimensions.c and > mxsetnzmax.c inthe > mx subdirectoryofthe > examples directory > mxGetJc , > mxGetNzmax , > mxSetIr , > mxSetJc , > mxSetNzmax

 Open the catalog to page 180
C and Fortran API Reference-203

Itismostefficienttousethe > mxIsDouble form. > See > mxisclass.c inthe > mx subdirectoryofthe > examples directory. > mxClassID , > mxGetClassID , > mxIsEmpty , > mxGetClassName

 Open the catalog to page 203
C and Fortran API Reference-206

> mexget.c , > mexlock.c , > mexsettrapflag.c ,and > yprime.c inthe > mex subdirectoryofthe > examples directory Օ > mxcalcsinglesubscript.c , > mxgeteps.c , > mxgetinf.c ,and > mxisfinite.c inthe > mx subdirectoryofthe > examples directory >

 Open the catalog to page 206

All The MathWorks catalogs and technical brochures

  1. Stateflow

    8  Pages

  2. SimEvents

    7  Pages

  3. SimDriveline

    7  Pages

  4. SimHydraulics

    7  Pages

  5. SimRF

    6  Pages

  6. MATLAB Coder

    5  Pages

  7. OPC Toolbox

    5  Pages

  8. SimBiology

    6  Pages

  9. xPC Target

    5  Pages

  10. SimMechanics

    7  Pages

  11. Simscape

    7  Pages

  12. Simulink

    6  Pages

  13. MATLAB®

    6  Pages

*Prices are pre-tax. They exclude delivery charges and customs duties and do not include additional charges for installation or activation options. Prices are indicative only and may vary by country, with changes to the cost of raw materials and exchange rates.