当前位置:网站首页>Matlab-mex
Matlab-mex
2022-07-18 06:24:00 【qq_ forty-one million nine hundred and fifty-five thousand two 】
1 problem
An old model uses matlab2011b Version modeling , At that time 32 Bit system ,mex The generated executable program is *.mexw32 Of , With the upgrading of computers , Turned into 64 Bit system , Therefore, the report cannot be found s-fun Error of ;
2 solve
2.1 Compile the generated *.mexw64 The target file of
(1) install VS2008( Corresponding Matlab2011b edition ), Be careful VS The version of must be more than matlab Version of is low , Otherwise, I can't recognize .
The version can be as follows MATLAB See which version is supported under the installation directory VS:
D:\App\MatlabR2011b\bin\win64\mexopts

(2) Set up mex Parameters :

(3) compile
>> mex Sfun_usLookup_xy_us.c
Creating library C:\Users\js\AppData\Local\Temp\mex_40Cy3a\templib.x And the object C:\Users\js\AppData\Local\Temp\mex_40Cy3a\templib.exp
xx1.obj : error LNK2019: Unresolved external symbols xx_xy_us, The sign is in the function mdlOutputs Cited in
xx1.mexw64 : fatal error LNK1120: 1 Unresolved external commands In this case, it is impossible to find xx_xy_us File corresponding to function
Way : Copy the corresponding files to the same directory , Add compilation at the same time ,xx_xy_u Functions are included in xx_ft_simu.c in .
>> xxx1.c xx_ft_simu.cSuccessfully compiled *.mexw64 The target file of
If it cannot be found during compilation .h The file of , Will .h Files in VC2008 Under the directory of :
D:\Apps\38_Microsoft Visual Studio_2008\VC\include
2.2 Install virtual machine
Install in virtual machine 32 position win System , In this way, it can be used when running the model *.mexw32 The target file of .
The virtual machine needs to pass the pure version before installing the system xp System file boot XTC_GHOST_WIN10_32_2021_6.iso; Then install the virtual machine system GHOST_WIN10_X86_VDL_2022_203072.iso

边栏推荐
- 2、Deep Learning in Higher Dimensions
- What's the use of games| Game application value research case collection
- @Use of equalsandhashcode annotation
- NVIDA CUDA-DirverAPI入门
- Pychart tutorial: 5 very useful tips
- 杰理之本修改解码时钟的方法【篇】
- es5和es6的区别
- forEach、for in、for of三者区别
- What is the real HTAP? (1) Background article
- 迪文串口屏教程(1)
猜你喜欢

2022年低压电工考试题模拟考试平台操作

Notes on linear algebra 2

regular expression

Special topic of software R & D efficiency demand value stream analysis

CS5801_HDMI转EDP优势替代LT6711A方案

2022年安全员-A证考试题目及在线模拟考试

仅需三步 轻松实现远程办公

Acquisition data transmission mode of vibrating wire wireless acquisition instrument for engineering monitoring instrument

997. 找到小镇的法官

Using JMeter pressure test upload and download interface practice
随机推荐
regular expression
QT ui设计师界面常用操作记录(QTableWidget)
函数与箭头函数
Is it safe to open futures accounts online?
杰理之播放最大音量提示音播不出来【篇】
数据类型新用法与解构赋值
Huawei's general card identification function enables multiple card bindings with one key
Function advanced application
Extrait d'un bon article
Qdu summer training - warm up match
R语言使用nnet包的multinom函数构建无序多分类logistic回归模型、使用exp函数、confint函数、coef函数获取模型中每个变量(自变量改变一个单位)对应的优势比
R语言ggplot2可视化:使用ggpubr包的ggboxplot函数可视化箱图、设置add参数为箱图添加分布数据点图(点阵图、dot plot)
2、Deep Learning in Higher Dimensions
MQ系列2:消息中间件的技术选型
仅需三步 轻松实现远程办公
正则表达式
杰理之用一拖二烧录器烧录注意【篇】
R语言使用lm函数构建线性回归模型、使用I运算符嵌入表达式、使用表达式指定回归方程的形式
Matplotlib绘图报错:“! LaTeX Error: File `type1cm.sty‘ not found.“ 解决办法
STM32F4的外部中断