Matlab调用C#Dll
Matlab调用C#Dll
NET Core,
and the Microsoft® .NET Framework on the Microsoft Windows® platform only.
For details, see System Requirements for Using MATLAB Interface to .NET. For
information about .NET versions compatible with MATLAB, see MATLAB
Interfaces to Other Languages.
When you call a .NET method or function from MATLAB®, MATLAB converts
arguments into .NET types. MATLAB performs this conversion on each passed
argument, except for arguments that are already .NET objects. The following
topics provide information about passing specific data types to .NET methods.
For information about how MATLAB maps .NET types to MATLAB types, see Handle
Data Returned from .NET Objects.
The following table shows the MATLAB base types for passed
arguments and the corresponding .NET types defined for input
arguments. Each row shows a MATLAB type followed by the possible
.NET argument matches, from left to right in order of closeness of
the match.
MATLAB Primitive Type Conversion Table
MATL Closest Type <————— Other Matching .NET Types —————> Least
AB Close Type
Type Preface Each .NET Type with System.
logical Boole Byte SByte Int16 UInt1 Int32 UInt Int UInt Sing Doub Obje
an 6 32 64 64 le le ct
double Doubl Singl Deci Int64 UInt6 Int32 UInt Int UInt SByt Byte Obje
e e mal 4 32 16 16 e ct
Implicit Conversion