📄 hello2_1.c
字号:
//hello.c 2.1
#include "mex.h"
#include "math.h"
void mexFunction(int nlhs, mxArray *plhs[],
int nrhs, const mxArray *prhs[])
{
double *i;
i=mxGetPr(prhs[0]);
if(fabs(i[0]-1)<=1e-5)
mexPrintf("hello,world!\n");
else
mexPrintf("大家好!\n");
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -