| 查看: 1739 | 回复: 8 | ||
szdchris银虫 (小有名气)
|
[求助]
Matlab中Gui编制的程序想脱离运行,但是CTF不见了。。。
|
|
mbuild –setup, 按提示选择matlab 自带编译器LCC。 然后用mcc编译.EXE 输入命令>>mcc,matlab会生成好多文件:mccExcludedFiles.log, ReadMe.txt,gui.prj,gui_main.c,gui_mcc_component_data.c, gui.exe。但是就是没有gui.ctf。是什么问题呢?高手指点啊 指令为: ??? Attempt to reference field of non-structure array. Error in ==> try_first>pushbutton2_Callback at 117 data=getappdata(handles.figure1,'data'); Error in ==> gui_mainfcn at 96 feval(varargin{:}); Error in ==> try_first at 42 gui_mainfcn(gui_State, varargin{:}); Error in ==> @(hObject,eventdata)try_first('pushbutton2_Callback',hObject,eventdata,guidata(hObject)) ??? Error while evaluating uicontrol Callback ??? Attempt to reference field of non-structure array. Error in ==> try_first>pushbutton1_Callback at 107 set(handles.edit1,'string',str); Error in ==> gui_mainfcn at 96 feval(varargin{:}); Error in ==> try_first at 42 gui_mainfcn(gui_State, varargin{:}); Error in ==> @(hObject,eventdata)try_first('pushbutton1_Callback',hObject,eventdata,guidata(hObject)) ??? Error while evaluating uicontrol Callback >> y=0==1 |
» 猜你喜欢
【复旦大学】二维材料方向招收2026年博士研究生1名
已经有0人回复
北京纳米能源与系统研究所 王中林院士/曹南颖研究员课题组2026级硕/博/博后招生
已经有10人回复
物理学I论文润色/翻译怎么收费?
已经有58人回复
荷兰Utrecht University超快太赫兹光谱王海教授课题招收2026 CSC博士生
已经有23人回复
反铁磁体中的磁性切换:两种不同的机制已成功可视化
已经有0人回复
求标准粉末衍射卡号 ICDD 01-076-1802
已经有0人回复
新西兰Robinson研究所招收全奖PhD
已经有0人回复
石墨烯转移--二氧化硅衬底石墨烯
已经有0人回复
笼目材料中量子自旋液体基态的证据
已经有0人回复
» 本主题相关价值贴推荐,对您同样有帮助:
matlab中gui的保存图片问题
已经有1人回复
matlab gui求助
已经有13人回复
matlab多个GUI中进行数据传递
已经有0人回复
MATLAB GUI中的edittext
已经有6人回复
matlab GUI中一些问题
已经有0人回复
matlab 电路仿真
已经有40人回复
MATLAB N个实用技巧:MATLAB中文论坛精华总结(含书中源码)
已经有243人回复
楼主想在matlab gui中实现一个功能,增加一个按钮,作用:停止计算
已经有0人回复
matlab GUI编程中axes的ButtonDownFcn无法响应
已经有0人回复
求助matlab/gui中画四个子图,出来的位置不对,求大虫解决
已经有8人回复
matlab中GUI模块的AXES控件的应用
已经有1人回复
matlab GUI
已经有0人回复
matlab GUI教程ppt及MATLAB在振动信号处理中的应用
已经有32人回复
Matlab之gui设计-如何将计算结果写入文本框?
已经有6人回复
求助:MATLAB里一个toolbox的GUI找不到
已经有1人回复
【求助】matlab的GUI设计ppt或者视频教程
已经有0人回复
lgycjpcqu
金虫 (正式写手)
- 应助: 35 (小学生)
- 金币: 566.8
- 散金: 411
- 帖子: 371
- 在线: 176.9小时
- 虫号: 1327328
- 注册: 2011-06-20
- 性别: GG
- 专业: 电化学
2楼2013-03-25 09:35:17
szdchris
银虫 (小有名气)
- 应助: 1 (幼儿园)
- 金币: 1055.8
- 散金: 60
- 红花: 4
- 帖子: 223
- 在线: 88.8小时
- 虫号: 1458709
- 注册: 2011-10-24
- 性别: GG
- 专业: 工程地质学
3楼2013-03-25 11:19:24
szdchris
银虫 (小有名气)
- 应助: 1 (幼儿园)
- 金币: 1055.8
- 散金: 60
- 红花: 4
- 帖子: 223
- 在线: 88.8小时
- 虫号: 1458709
- 注册: 2011-10-24
- 性别: GG
- 专业: 工程地质学
|
Try to update options file: C:\Documents and Settings\Administrator\Application Data\MathWorks\MATLAB\R14\compopts.bat From template: C:\MATLAB7\BIN\WIN32\mbuildopts\msvc60compp.bat Done . . . --> "C:\MATLAB7\bin\win32\mwregsvr C:\MATLAB7\bin\win32\mwcomutil.dll" DllRegisterServer in C:\MATLAB7\bin\win32\mwcomutil.dll succeeded --> "C:\MATLAB7\bin\win32\mwregsvr C:\MATLAB7\bin\win32\mwcommgr.dll" DllRegisterServer in C:\MATLAB7\bin\win32\mwcommgr.dll succeeded 到这步时那个双引号是怎么输的,我的双引号输里边是红色的,该怎么办呢? |
4楼2013-03-25 11:32:32
lgycjpcqu
金虫 (正式写手)
- 应助: 35 (小学生)
- 金币: 566.8
- 散金: 411
- 帖子: 371
- 在线: 176.9小时
- 虫号: 1327328
- 注册: 2011-06-20
- 性别: GG
- 专业: 电化学
【答案】应助回帖
|
mex -setup Please choose your compiler for building external interface (MEX) files: Would you like mex to locate installed compilers [y]/n? Select a compiler: [1] Lcc-win32 C 2.4.1 in D:\APPLIE~1\MATLAB\sys\lcc [2] Microsoft Visual C++ 6.0 in D:\APPLIED SOFTWARE\VC6.0\MSDev98 [0] None Compiler: 和mbuild –setup基本是一致的,你配置好再试一下。 |
5楼2013-03-25 12:33:19
lgycjpcqu
金虫 (正式写手)
- 应助: 35 (小学生)
- 金币: 566.8
- 散金: 411
- 帖子: 371
- 在线: 176.9小时
- 虫号: 1327328
- 注册: 2011-06-20
- 性别: GG
- 专业: 电化学
6楼2013-03-25 12:37:18
szdchris
银虫 (小有名气)
- 应助: 1 (幼儿园)
- 金币: 1055.8
- 散金: 60
- 红花: 4
- 帖子: 223
- 在线: 88.8小时
- 虫号: 1458709
- 注册: 2011-10-24
- 性别: GG
- 专业: 工程地质学
|
我用的是2008a,c++安装了,是6.0,现在比较纠结的是安装mbuild -setup的时候到这算完事了吗? Warning: MBUILD requires that the Microsoft Visual C++ 6.0 directories "VC98" and "Common" be located within the same parent directory. (Expected to find these directories in 'D:\Program Files'.) Trying to update options file: C:\Documents and Settings\Administrator\Application Data\MathWorks\MATLAB\R2008a\compopts.bat From template: D:\matlab\bin\win32\mbuildopts\msvc60compp.bat Done . . . 我见有的说明是到这步算完成了,但是,有的说明是还需要这一步—— Try to update options file: C:\Documents and Settings\Administrator\Application Data\MathWorks\MATLAB\R14\compopts.bat From template: C:\MATLAB7\BIN\WIN32\mbuildopts\msvc60compp.bat Done . . . --> "C:\MATLAB7\bin\win32\mwregsvr C:\MATLAB7\bin\win32\mwcomutil.dll" DllRegisterServer in C:\MATLAB7\bin\win32\mwcomutil.dll succeeded --> "C:\MATLAB7\bin\win32\mwregsvr C:\MATLAB7\bin\win32\mwcommgr.dll" DllRegisterServer in C:\MATLAB7\bin\win32\mwcommgr.dll succeeded 到底是怎么回事呢?如果按下面这步输的话,那怎么还有双引号呢,请指教!非常感谢 ![]() |
7楼2013-03-25 13:13:12
lgycjpcqu
金虫 (正式写手)
- 应助: 35 (小学生)
- 金币: 566.8
- 散金: 411
- 帖子: 371
- 在线: 176.9小时
- 虫号: 1327328
- 注册: 2011-06-20
- 性别: GG
- 专业: 电化学
【答案】应助回帖
|
这个问题我的确不知道了,没遇到过,我配置的时候依次用mbuild -setup和mbuild –setup没出什么问题,对那些系统文件间的关联我也不是很清楚。 按照提示需要把"VC98" and "Common"和两个文件夹放到一起,我查了我的电脑,我安装时VC和MATLAB的安装文件夹是在一个目录下-APPLIED SOFTWARE文件夹下的,不知道是这个问题不? 至于你上面提到那个配置过程我是真的不懂了。 谈不上指教,我也在学MATLAB交流下罢了我的安装路径给你做个参考 D:\APPLIED SOFTWARE\MATLAB D:\APPLIED SOFTWARE\VC98 D:\APPLIED SOFTWARE\Visual.C++.6.EN 配置过程 >> mbuild -setup Please choose your compiler for building standalone MATLAB applications: Would you like mbuild to locate installed compilers [y]/n? y Select a compiler: [1] Lcc-win32 C 2.4.1 in D:\APPLIE~1\MATLAB\sys\lcc [2] Microsoft Visual C++ 6.0 in D:\APPLIED SOFTWARE\VC6.0\MSDev98 [0] None Compiler: 2 Please verify your choices: Compiler: Microsoft Visual C++ 6.0 Location: D:\APPLIED SOFTWARE\VC6.0\MSDev98 Are these correct?([y]/n): y Trying to update options file: C:\Documents and Settings\lgy\Application Data\MathWorks\MATLAB\R2007b\compopts.bat From template: D:\APPLIE~1\MATLAB\bin\win32\mbuildopts\msvc60compp.bat Done . . . >> mex -setup Please choose your compiler for building external interface (MEX) files: Would you like mex to locate installed compilers [y]/n? y Select a compiler: [1] Lcc-win32 C 2.4.1 in D:\APPLIE~1\MATLAB\sys\lcc [2] Microsoft Visual C++ 6.0 in D:\APPLIED SOFTWARE\VC6.0\MSDev98 [0] None Compiler: 2 Please verify your choices: Compiler: Microsoft Visual C++ 6.0 Location: D:\APPLIED SOFTWARE\VC6.0\MSDev98 Are these correct?([y]/n): y Trying to update options file: C:\Documents and Settings\lgy\Application Data\MathWorks\MATLAB\R2007b\mexopts.bat From template: D:\APPLIE~1\MATLAB\bin\win32\mexopts\msvc60opts.bat Done . . . |
8楼2013-03-25 13:49:00
814647241
金虫 (小有名气)
追风者
- 应助: 5 (幼儿园)
- 金币: 2174.2
- 红花: 3
- 帖子: 193
- 在线: 339.1小时
- 虫号: 1493876
- 注册: 2011-11-16
- 性别: GG
- 专业: 机械测试理论与技术

9楼2013-05-28 15:18:47













回复此楼

谈不上指教,我也在学MATLAB交流下罢了