⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 engwindemo.c

📁 VC中调用MATLAB示例代码:如何在VC下调用MATLAB
💻 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 + -