尽管网上有很多资源可以解决这个问题,但我还是很难从一个简单的 .cpp 程序调用 MATLAB。
\n我的目标:
\n使用 Microsoft Visual Studio 2010 Professional 64 位构建 .cpp 程序,\n为内置函数和图形调用 MATLAB Engine (MATLAB R2013b 64 位)
\n我做了什么:
\n在 .cpp 文件属性页中,我有:
\n编写了以下程序:
\n// mEng.cpp : Defines the entry point for the console application.\n// libeng.dll is in C:\\Program Files\\MATLAB\\R2013b\\bin\\win64\n\n#include "stdafx.h"\n#include <Engine.h>\n#include <matrix.h>\n#include <iostream>\n#include <string>\n#include <cmath>\n\n#pragma …Run Code Online (Sandbox Code Playgroud)