博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Matlab C Library Call Matlab Built-In Functions
阅读量:4181 次
发布时间:2019-05-26

本文共 1015 字,大约阅读时间需要 3 分钟。

原文:

Syntax 

#include "mex.h"int mexCallMATLAB(int nlhs, mxArray *plhs[], int nrhs, mxArray *prhs[], const char *name);

Arguments 

nlhs
Number of desired output arguments. This value must be less than or equal to 50.
plhs
Array of pointers to mxArrays. The called command puts pointers to the resultant mxArrays into plhs and allocates dynamic memory to store the resultant mxArrays. By default, MATLAB automatically deallocates this dynamic memory when you clear the MEX-file. However, if heap space is at a premium, you may want to call mxDestroyArray as soon as you are finished with the mxArrays that plhs points to.
nrhs
Number of input arguments. This value must be less than or equal to 50.
prhs
Array of pointers to input arguments.
name
Character string containing the name of the MATLAB built-in, operator, M-file, or MEX-file that you are calling. If name is an operator, just place the operator inside a pair of single quotes, for example, '+'.

Returns 

0 if successful, and a nonzero value if unsuccessful.

 

转载地址:http://rxhai.baihongyu.com/

你可能感兴趣的文章
如何建立svn版本库并运行它
查看>>
如何合并svn分支到主干上
查看>>
libusb源码学习:list_entry
查看>>
libusb源码学习:几个函数加载的宏(windows)
查看>>
MCU_如何通过硬件VID 查找生产厂家
查看>>
MCU_C语言中 数组型指针 的应用 -- char (*stringp)[]
查看>>
NCNN部署例程 mxnet-gluoncv之simple_pose
查看>>
Ubuntu18.04查看显卡信息并安装NVDIA显卡驱动driver + Cuda + Cudnn
查看>>
电子元件二极管封装SMA,SMB,SMC的区别
查看>>
ALTERA verilog Error (12007): Top-level design entity is undefined
查看>>
VS2019 LINK Error 无法找到 mscoree.lib
查看>>
Verilog_MyHDL的使用
查看>>
VisualStudio2019的怪问题,在_Container_base12::_Orphan_all引发了异常: 读取访问权限冲突
查看>>
相机技术--摄像机720p、1080p、2mp、3mp、5mp;VGA, QHD, FHD, 2K,4K对应的分辨率分别是什么
查看>>
Visual Studio 的问题:unable to locate visual studio installer
查看>>
MCU_STM32F4XX_HAL_ADC_Start_DMA只能触发一次的问题
查看>>
Android四大组件之Service示例
查看>>
Android四大组件Service之前台进程(201807最新源码)
查看>>
实战Android:用AccessibilityService捕获volume按键
查看>>
实战Android:通过BroadcastReceiver监听Home,电源Power,和音量变化Volume键
查看>>