资源简介
C#调用matlab 实例 源代码 下载 csdn
C#过程文件和matlab 工程文件,亲测成功,好用别忘了给评价

代码片段和文件信息
/*
* MATLAB Compiler: 4.14 (R2010b)
* Date: Sun Jan 25 21:58:38 2015
* Arguments: “-B“ “macro_default“ “-W“ “dotnet:cs1Class10.0private“ “-T“ “link:lib“
* “-d“ “C:\Program Files\MATLAB\R2010b\bin\cs1\src“ “-w“ “enable:specified_file_mismatch“
* “-w“ “enable:repeated_file“ “-w“ “enable:switch_ignored“ “-w“
* “enable:missing_lib_sentinel“ “-w“ “enable:demo_license“ “-v“ “class{Class1:C:\Program
* Files\MATLAB\R2010b\bin\twice.m}“
*/
using System;
using System.Reflection;
using System.IO;
using MathWorks.MATLAB.NET.Arrays;
using MathWorks.MATLAB.NET.Utility;
#if SHARED
[assembly: System.Reflection.AssemblyKeyFile(@““)]
#endif
namespace cs1
{
///
/// The Class1 class provides a CLS compliant MWArray interface to the M-functions
/// contained in the files:
///
/// C:\Program Files\MATLAB\R2010b\bin\twice.m
///
/// deployprint.m
///
/// printdlg.m
///
///
/// @Version 0.0
///
public class Class1 : IDisposable
{
#region Constructors
///
/// The static constructor instantiates and initializes the MATLAB Compiler Runtime
/// instance.
///
static Class1()
{
if (MWMCR.MCRAppInitialized)
{
Assembly assembly= Assembly.GetExecutingAssembly();
string ctfFilePath= assembly.Location;
int lastDelimiter= ctfFilePath.LastIndexOf(@“\“);
ctfFilePath= ctfFilePath.Remove(lastDelimiter (ctfFilePath.Length - lastDelimiter));
string ctfFileName = “cs1.ctf“;
Stream embeddedCtfStream = null;
String[] resourceStrings = assembly.GetManifestResourceNames();
foreach (String name in resourceStrings)
{
if (name.Contains(ctfFileName))
{
embeddedCtfStream = assembly.GetManifestResourceStream(name);
break;
}
}
mcr= new MWMCR(““
ctfFilePath embeddedCtfStream true);
}
else
{
throw new ApplicationException(“MWArray assembly could not be initialized“);
}
}
///
/// Constructs a new instance of the Class1 class.
///
public Class1()
{
}
#endregion Constructors
#region Finalize
///
/// Class destructor called by the CLR garbage collector.
///
~Class1()
{
Dispose(false);
}
///
/// Frees the native resources associated with this object
///
public void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
///
/// Internal dispose function
///
protected virtual void Dispose(bool disposing)
{
if (!disposed)
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 90624 2015-01-25 21:58 matlab C#\cs1\distrib\cs1.dll
文件 90624 2015-01-25 21:58 matlab C#\cs1\distrib\cs1Native.dll
文件 30456 2015-01-25 21:58 matlab C#\cs1\distrib\cs1_overview.html
文件 4540 2015-01-25 21:58 matlab C#\cs1\distrib\readme.txt
文件 6604 2015-01-25 21:58 matlab C#\cs1\src\Class1.cs
文件 5863 2015-01-25 21:58 matlab C#\cs1\src\Class1Native.cs
文件 90624 2015-01-25 21:58 matlab C#\cs1\src\cs1.dll
文件 4927 2015-01-25 21:58 matlab C#\cs1\src\cs1.xm
文件 90624 2015-01-25 21:58 matlab C#\cs1\src\cs1Native.dll
文件 4171 2015-01-25 21:58 matlab C#\cs1\src\cs1Native.xm
文件 30456 2015-01-25 21:58 matlab C#\cs1\src\cs1_overview.html
文件 710837 2015-01-25 21:58 matlab C#\cs1\src\mccExcludedFiles.log
文件 4540 2015-01-25 21:58 matlab C#\cs1\src\readme.txt
文件 410624 2015-01-25 22:38 matlab C#\visual studio 2012 C#调用Matlab2012.doc
文件 187 2015-01-25 22:01 matlab C#\WpfApplication7\WpfApplication7\App.config
文件 326 2015-01-25 22:01 matlab C#\WpfApplication7\WpfApplication7\App.xaml
文件 342 2015-01-25 22:01 matlab C#\WpfApplication7\WpfApplication7\App.xaml.cs
文件 90624 2015-01-25 21:58 matlab C#\WpfApplication7\WpfApplication7\bin\Debug\cs1.dll
文件 90624 2015-01-25 21:58 matlab C#\WpfApplication7\WpfApplication7\bin\Debug\cs1Native.dll
文件 102400 2010-08-03 20:22 matlab C#\WpfApplication7\WpfApplication7\bin\Debug\MWArray.dll
文件 247115 2010-08-03 20:22 matlab C#\WpfApplication7\WpfApplication7\bin\Debug\MWArray.xm
文件 9216 2015-01-25 22:37 matlab C#\WpfApplication7\WpfApplication7\bin\Debug\WpfApplication7.exe
文件 187 2015-01-25 22:01 matlab C#\WpfApplication7\WpfApplication7\bin\Debug\WpfApplication7.exe.config
文件 30208 2015-01-25 22:37 matlab C#\WpfApplication7\WpfApplication7\bin\Debug\WpfApplication7.pdb
文件 22984 2015-01-25 22:38 matlab C#\WpfApplication7\WpfApplication7\bin\Debug\WpfApplication7.vshost.exe
文件 187 2015-01-25 22:01 matlab C#\WpfApplication7\WpfApplication7\bin\Debug\WpfApplication7.vshost.exe.config
文件 490 2010-03-17 22:39 matlab C#\WpfApplication7\WpfApplication7\bin\Debug\WpfApplication7.vshost.exe.manifest
文件 288 2015-01-25 22:01 matlab C#\WpfApplication7\WpfApplication7\MainWindow.xaml
文件 1607 2015-01-25 22:36 matlab C#\WpfApplication7\WpfApplication7\MainWindow.xaml.cs
文件 2325 2015-01-25 22:24 matlab C#\WpfApplication7\WpfApplication7\obj\Debug\App.g.cs
............此处省略39个文件信息
- 上一篇:C#WPF 右键菜单 显示 事件触发 测试通过
- 下一篇:KNN算法C#例程
相关资源
- C#百度地图源码
- Visual C#.2010从入门到精通配套源程序
- C# 软件版本更新
- C#屏幕软键盘源码,可以自己定制界面
- 智慧城市 智能家居 C# 源代码
- c#获取mobile手机的IMEI和IMSI
- C#实现简单QQ聊天程序
- 操作系统 模拟的 欢迎下载 C#版
- C#写的计算机性能监控程序
- 用C#实现邮件发送,有点类似于outlo
- MVC model层代码生成器 C#
- c#小型图书销售系统
- C# Socket Server Client 通讯应用 完整的服
- c# winform 自动登录 百度账户 源代码
- C#编写的16进制计算器
- C#TCP通信协议
- C# 数据表(Dataset)操作 合并 查询一
- C#语音识别系统speechsdk51,SpeechSDK51L
- 数据库备份还原工具1.0 C# 源码
-
[免费]xm
lDocument 节点遍历C# - EQ2008LEDc#开发实例
- DirectX.Capturec# winform 操作摄像头录像附
- c# 实现的最大最小距离方法对鸢尾花
- C#版保龄球记分代码
- C#自定义控件
- 基于c#的实验室设备管理系统621530
- C# 使用ListView控件实现图片浏览器(源
- C#简单窗体聊天程序
- C#指纹识别系统程序 报告
- c# 高校档案信息管理系统
评论
共有 条评论