从C#运行MATLAB和给参数MATLAB [英] Run matlab from C# and give parameter to matlab

查看:289
本文介绍了从C#运行MATLAB和给参数MATLAB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个C#程序,它应该调用Matlab的用于运行m文件等Matlab程序读取的文本文件可以在情况下可以有所不同的参数。

I have a C# program which should call Matlab for running a m-file and so Matlab program read parameters from a text file that may be vary on situations.

我想是这样的:

Execute(Matlab.exe,"matlabprog.m","input_parameters_file.txt");



,如果我知道,当Matlab在这种情况下终止正在运行的是为我好。

It is good for me if i know when this instance of Matlab terminate running.

推荐答案

考虑使用Matlab引擎或使用MATLAB生成器NA编译.NET程序集。
还检查了这个帖子,在我解释一些准备。

Consider using the Matlab engine or compile a .NET Assembly using the Matlab Builder NA. Also check out this post, in which I explain some of the possibilities.

这篇关于从C#运行MATLAB和给参数MATLAB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆