engwindemo.c
来自「VC中调用MATLAB示例代码」· C语言 代码 · 共 26 行
C
26 行
/* engwindemo.c
* This is a simple program that illustrates how to call the MATLAB
* Engine functions from a C program for windows
* Copyright (c) 1996-1998 by The MathWorks, Inc.
* All Rights Reserved.*/
#include < windows.h >
#include < stdlib.h >
#include < stdio.h >
#include < string.h >
#include < d:\MATLAB6p1\extern\include\engine.h >
void main()
{
Engine *ep;
/*
* Start the MATLAB engine
*/
if (!(ep = engOpen(NULL))) {
MessageBox ((HWND)NULL, (LPSTR)
"Can't start MATLAB engine", "",
MB_OK);
exit(-1);
}
engEvalString(ep, "contour(peaks)");
engClose(ep);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?