岁月随笔
  • Calling C from matlab----some experience

    2007-01-31

    I am using the GNU glpk toolkit to solve a linear programming problem, but unfortunately the GLPK toolkit is written for C/C++, so I have to write a mex interface so that I can directly call the GLPK from matlab.

    Some online resources for writing mex and compiling mex file :

    http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_external/

    1 A trick to compile multiple mex file including some .lib:

    matlab prompt> mex glpkmex.cpp glpk.lib

    The mex file after compiking has the extension .mexw32 on matlab version that is higher than 7.3.

    2 A trick to debuge mex file through MS studio .NET and matlab

    see

    http://www.mathworks.com/access/helpdesk/help/techdoc/

    then click "External interfaces"-->"Creating C Language MEX-Files"-->"Debugging C Language MEX-Files"

    3. We can also try to compile a mex file using MS. NET, see

    http://www.mee.tcd.ie/~sigmedia/intranet/coding/HowtoMex.php

    4 We can also use gcc to create a mex file, see

    http://gnumex.sourceforge.net/

    Tag:Learning machine
    cindyasu 发表于12:18:15 | 阅读全文 | 评论 0 | 编辑 | 分享 0
共1页 1

岁月随笔

个人资料

cindyasu

日历

搜索

管理

  • 进入后台 写新日志
  • 文章管理 评论管理
  • 更换模板 访问统计

文章分类

  • Research[6]

Tag

  • Research[10]
  • tracking[5]
  • management[4]
  • color[4]
  • Learning[3]
More..

最新文章

  • #pragma comment(lib, "libfilename") -- A cool way to indicate dependency.
  • Ideas on Surgery Video
  • The papers that I read recently (04/15/2008 to 04/29/2008)
  • Advantage of the pls-rbpf for 3d articulated human motion tracking
  • The reason why kernel PLS does not work on 3D human motion tracking
  • RBPF-PLS: Future work for jounal publication
  • 3D articulated human motion tracking using PLS-RBPF
  • Future work on 3D human motion tracking using PLS-RBPF
  • ON the application of dimensionality reduction to visual tracking
  • The anatomy of color profile
全部日志>>

最新评论

  • zenkig:What is this RBPF? and Have ...
  • 岳立川:HumanEva database 用迅雷下不了,用本地...
  • Liu Wei:ao...... Several people a...
  • bobschina:hi,how are you doing recentl...

链接

    存档

    • 2010 [1]
    • 2008 [2]
    • 2007 [17]
    • 2006 [14]
    • 访问统计:
    • RSS 什么是RSS?
      用IM提醒我内容更新
      订阅到QQ邮箱
      订阅到鲜果阅读器
      订阅到Google阅读器
      订阅到抓虾阅读器
    • 《城客》第四期:创意之城
      博客大巴
      博客大巴使用指南
      博客大巴模板中心
      免费注册博客大巴
      一键博客搬家工具
      中文互动杂志城客
    Copyright © 2002-2012 BlogBus.com, All Rights Reserved. 博客大巴 版权所有
    博客大巴模板设计: 有咖啡的日子 | 作者: Bohemia