Matlab 版 (精华区)
发信人: zjliu (Robusting), 信区: Matlab
标 题: 数学工具FAQ[smth]--第五节:Matlab接口-vc
发信站: 哈工大紫丁香 (Tue Dec 17 15:08:11 2002) , 转信
===================================
8).如何在C++ Builder中调用Matlab(ActiveX)?
:# Serge Kanilo (skanilo@hotmail.com), 2000/08/01. comp.soft-sys.matlab #
I once called a Matlab function out of Borland Builder 4.0.
I used an automation
#include
...
Variant matlab;
matlab = Variant::CreateObject("Matlab.Application");
Procedure exec("Execute");
matlab.Exec(exec << "calc");
…
===================================
9).如何在VB中调用Matlab(ActiveX)?
:# Taras Chaban (taras@camcontrol.co.uk), 1999/03/09.
comp.soft-sys.matlab #
Hi,
You can call MATLAB from VB using ActiveX interface.
A simple example could be:
Sub tot1()
Dim MatLab As Object
Dim Result As String
Dim MReal(1, 3) As Double
Dim MImag() As Double
Set MatLab = CreateObject("MatLab.Application")
Result = MatLab.Execute("a = [1 2 3 4; 5 6 7 8;]")
Call MatLab.GetFullMatrix("a", "base", MReal, MImag)
End Sub
===================================
10).如何在VC中调用Matlab编译的cpp文件
:#FangQ(Qianqian.Fang@dartmouth.edu), 2002/6/22.BigGreen/MathTools#
参见
http://www.mathworks.com/support/solutions/data/21291.shtml
中文地址请大家推荐
===================================
11).如何在VC中调用mcc编译的dll?
:#FangQ(Qianqian.Fang@dartmouth.edu), 2002/6/22.BigGreen/MathTools#
参见
http://www.mathworks.com/support/solutions/data/28621.shtml
中文地址请大家推荐
===================================
12).如何在Matlab中调用其他软件的ActiveX接口?
:#FangQ(Qianqian.Fang@dartmouth.edu), 2002/6/22.BigGreen/MathTools#
在Matlab中参见actxserver和actxcontrol的帮助
这里是一个在matlab中操纵PowerPoint的例子:
http://groups.google.com/groups?
selm=370E09E2.275EF5E8%40mail.northgrum.com&output=gplain
中文地址请大家推荐
--
※ 来源:.哈工大紫丁香 http://bbs.hit.edu.cn [FROM: 202.118.229.86]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:4.538毫秒