📄 engwindemo.c
字号:
/* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -