MySQL和Matlab [英] MySQL and Matlab

查看:250
本文介绍了MySQL和Matlab的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想与Matlab中的MySQL数据库交互。

我发现了一个 mysql libraryfor matlab 这里 mathworks



我按照说明编译库,成功的。我得到一个mex32文件在结尾。只有,第一页上的指令指的是我需要使用的Dll(我猜是应该生成一个Dll)。



我不熟悉mex编译器或为Matlab编译外部模块。

我缺少一些小事?


解决方案

对dll的引用已过时。



在Windows上编译mex函数时,将其编译为dll(而不是.exe)。因此,编译mex函数用于具有扩展名.dll。具有.dll扩展名的Mex函数仍然可以工作,但有一个警告,这可能会在将来停止这种情况。



64位Windows到来时,TheMathWorks需要人们可以为Win32和Win64编译相同的mex函数,因此他们分别将扩展名更改为.mexw32和.mexw64。显然,他们没有完全更新文档。


I want to interact with a MySQL database from Matlab.
I found a mysql "library" for matlab here and the same on mathworks.

I followed the instructions to compile the library and the compilation seems to be successful. I get a mex32 file at the end. Only, the instructions on the first page refer to a Dll that I need to use (I guess that a Dll was supposed to be generated).

I am not familiar with the mex compiler or with compiling external modules for Matlab.
Am I missing something trivial? Where is the Dll supposed to be?

Thanks.

解决方案

The reference to the dll is obsolete.

When you compile a mex function on Windows, you compile it as a dll (not an .exe). Thus, compiled mex functions used to have the extension .dll. Mex-functions with .dll extensions still work, but there is a warning that this might stop being the case in the future.

When 64-bit Windows arrived, TheMathWorks needed a way that people were to be able to compile the same mex-function for both Win32 and Win64, thus they changed the extension to .mexw32 and .mexw64, respectively. Apparently, they did not update the documentation completely.

这篇关于MySQL和Matlab的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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