找回密码
 注册
Simdroid-非首页
查看: 1222|回复: 24

[13.脚本命令] 一个自定义GUI脚本【精彩之极】

[复制链接]
发表于 2009-5-21 22:43:33 | 显示全部楼层 |阅读模式 来自 湖北武汉
本帖最后由 TBE_Legend 于 2009-6-14 17:39 编辑

将压缩包解压到COMSOL安装文件夹根目录。
在Scrit中输入命令:
cd minigui
minigui
即可启动自定义GUI界面,如需对脚本进行编辑,在Scrit中输入命令:
edit minigui
或者直接用记事本打开minigui.m文件。
使用COMSOL 3.5a的朋友,可将文件夹解压到Matlab安装目录,命令使用方法和Scrit类似。
另外,好像COMSOL35不支持Matlab 2008和2009, 升级到COMSOL 3.5a后又好了,可能是兼容性问题吧。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×

评分

1

查看全部评分

 楼主| 发表于 2009-5-21 22:47:00 | 显示全部楼层 来自 湖北武汉
Simdroid开发平台
精辟!完全合理的好帖,期待继续整理!!!
太有逻辑性了,不得不顶,不知楼主是不是也写书啊!
回复 不支持

使用道具 举报

发表于 2009-5-21 23:53:51 | 显示全部楼层 来自 黑龙江哈尔滨
How does it look like? please give some pictures.
回复 不支持

使用道具 举报

 楼主| 发表于 2009-5-22 17:10:33 | 显示全部楼层 来自 湖北武汉

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
回复 不支持

使用道具 举报

发表于 2009-6-7 22:32:20 | 显示全部楼层 来自 北京
很好的东西 顶
回复 不支持

使用道具 举报

发表于 2009-6-8 15:04:11 | 显示全部楼层 来自 湖北武汉
呵呵.争分中
回复 不支持

使用道具 举报

发表于 2009-6-9 14:22:57 | 显示全部楼层 来自 浙江杭州
楼主,我之前用comsol 3.5,都可以支持matlab 2008 2009的
3.5a也支持的
不过,还是谢谢楼主的宝贵的资料
回复 不支持

使用道具 举报

发表于 2009-6-11 10:13:37 | 显示全部楼层 来自 美国
不太理解啊,能更详细一些吗
回复 不支持

使用道具 举报

发表于 2009-6-12 09:57:41 | 显示全部楼层 来自 浙江杭州
3.5a下无法运行,因为找不到frame这个命令
回复 不支持

使用道具 举报

发表于 2009-6-14 17:37:48 | 显示全部楼层 来自 黑龙江哈尔滨
本帖最后由 TBE_Legend 于 2009-6-14 20:23 编辑

Try this in COMSOL 3.5a:

copy the .m file under the directory "C:\COMSOL35\script\guitool" which defines the ''frame'' command to your current work directory, say,''C:\COMSOL35a\mli\multiphysics''.
function varargout = frame(varargin)
%FRAME Create a window for use when creating a custom user interface.
%   F = FRAME(TITLE) creates a frame with the specified title.
%   In addition to the fixed arguments, additional property-value pairs
%   can be given at the end of the function to further control how the
%   frame is created.
%
%   Property    Value / {Default}   Description
%   -------------------------------------------------------------------------
%   Position    2-element vector    The position on the screen for the upper
%                                   left corner of the frame.
%   Size        2-element vector    The size of the frame. If not given
%                                   the frame will be packed to fit the
%                                   size of the components that have been
%                                   added to it.
%
%   The function returns a frame object that can then be further manipulated
%   using the methods in the following table:
%
%   Method                    Description
%   -------------------------------------------------------------------------
%   addMenu(menu)             Adds the specified menu at the end of the main
%                             menu bar of the frame.
%   close                     Closes the frame.
%   getSize                   Returns the size of the frame as a 2-element
%                             vector with width and height.
%   setSize(width,height)     Sets the size of the frame.
%   show                      While the frame is being created it is
%                             invisible. Call the show method after adding
%                             all components to it to show it on screen.
%
%   The methods for PANEL are also available for FRAME, thereby allowing you
%   to add panels and components to a frame.
%
%   See also the help text for COMPONENT to get details on property-value
%   pairs and methods that are valid for all components.
%
%   See also COMPONENT, DIALOG, PANEL

%   Copyright (c) 1994-2008 by COMSOL AB
%   $Revision: 1.9 $  $Date: 2008/08/05 09:17:28 $


for convenience, the whole "script" file folder is uploaded here.

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
回复 不支持

使用道具 举报

发表于 2009-10-19 17:03:19 | 显示全部楼层 来自 陕西西安
??? Error using ==> frame
Too many output arguments.

Error in ==> minigui at 1
f1=frame('COMSOL','size',[820 600]);
3.5a 还是出现这样的错误
回复 不支持

使用道具 举报

发表于 2010-1-31 17:38:12 | 显示全部楼层 来自 北京海淀
本帖最后由 jxcjxc10 于 2010-1-31 17:39 编辑

如果在你那个minigui模型基础下做无序结构,边界和求解域怎么做啊?
譬如说在一矩形区域随机加入1000个杂质小圆(全2D),由于每次几何都不同,怎么设置啊?
回复 不支持

使用道具 举报

发表于 2010-2-4 00:34:02 | 显示全部楼层 来自 美国
It looks so cool.
回复 不支持

使用道具 举报

发表于 2010-2-28 22:21:51 | 显示全部楼层 来自 江苏苏州
怎么输出带参数求解器的图啊?
回复 不支持

使用道具 举报

发表于 2010-3-6 12:04:33 | 显示全部楼层 来自 辽宁阜新
看见高手做的东西  真是好
回复 不支持

使用道具 举报

发表于 2010-3-8 11:51:37 | 显示全部楼层 来自 湖北武汉
好贴,顶一个!
回复 不支持

使用道具 举报

发表于 2010-3-12 01:59:39 | 显示全部楼层 来自 美国
新手,看不出哪里好,呵呵
回复 不支持

使用道具 举报

发表于 2010-3-19 15:43:39 | 显示全部楼层 来自 北京海淀
好东东,不得不顶
回复 不支持

使用道具 举报

发表于 2010-5-18 14:08:33 | 显示全部楼层 来自 天津
很不错的东西,谢谢
回复 不支持

使用道具 举报

发表于 2010-5-19 11:45:51 | 显示全部楼层 来自 北京交通大学
下来看看 谢谢楼主哈
回复 不支持

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-4-20 09:08 , Processed in 0.078288 second(s), 17 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表