伊丽莎白,我不能在VEE 6.0中重现你的问题。
但是,我的VEEmatlab路径不包含disabledberror功能。
我的常规Matlab路径确实包含disabledberror,并且执行时没有错误。
这是一个非常短的函数,第一行为dbstat指定一个值,所以我不明白为什么一切都安装没有损坏就应该有问题。对于每个人来说更一般的说明,我一直在使用Matlab来做类似的事情。
11年了,我从未见过生成构造的图:fig = findobj('Type','Figure','Tag',tagname); if isempty(fig),fig = figure('Tag',tagname);否则
,图(图),结束,直到它开始出现在VRF上。
这看起来像是一些不错的图形管理工具,可以防止你自己意外删除数字,以及创建助记符等。另一方面,如果你想要做的只是弹出一个情节,那就完全没必要了。
绘图,散射,网格等基本绘图命令将创建一个图窗口(如果不存在),并覆盖当前图形(如果有)。
要打开一个新的数字窗口(以便不覆盖现有的情节),我使用简单形式h = figure;
输出变量h是图的句柄,巧合是图号。
它的使用是可选的。
为了使数字n成为当前数字,我使用数字(n)。
函数gcf返回当前图形的句柄,如果没有图形窗口打开则创建一个。
函数gcf可以在需要图形处理的任何地方使用,例如
保存(GCF)。
我已经编写了数千行Matlab函数,包括一些相当复杂的GUI,并且从未希望进行比我刚才描述的更广泛的图形管理。
我的建议,值得一提的是,如果你的需求很简单,就像一两块情节一样,你可以轻松地省去findobj和标签的东西,让Matlabfigure把你的情节放在哪里。
这是相当不错的,除非你需要确保打开一个新的数字,如果你不想覆盖现有的.Regards, - Bill OssmannPhilips Ultrasounde-mail:bill.ossmann@philips.com----
--------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - -大家好,
有人可以在Vee Pro 6.1下使用Matlab帮助我。
?我在vee pro下使用matlab脚本创建了一个图形,我想自动保存它(这意味着没有在matlab图窗口FILE-> EXPORT-> bmp文件名上添加)。
我还想在vee程序中定义bmpfilename。我已经完成了第一个matlab脚本,没有控制bmp文件名,如下所示:***************启动matlab脚本***
************************************* fig = findobj('Type','Figure','
Tag',tagname); if isempty(fig),fig = figure('Tag',tagname); else,figure(fig),end,scatter(X,Y,S,C); title('scatter');
saveas(图,'d:.bmp','bmp'); ***************结束matlab脚本***************
************************* X,Y,S,C和标记名是Matlab脚本框的输入。这些行默认是通过选择来定义的
除了最后一行之外的“分散”功能。但是当我执行此操作时,我有以下消息,其中有一个OK按钮和按钮:“引用未初始化的变量dbstat inveepro6.1matlaboolboxmathlabgraphicsprivatedisabledberror”我单击确定并且图形被正确保存。
,我已经保存了我想要的数字,但它仍然不是自动的。已经有人已经做了自动保存matlab f
igure?感谢您的帮助!Elisabeth .---您目前订阅了vrf:bill.ossmann@philips.com订阅时发送一封空白电子邮件至“join-vrf@it.lists.it.agilent.com”.To
取消订阅发送空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。要发送邮件到此邮件列表,请发送电子邮件至“vrf@agilent.com”。如果您需要有关邮件列表的帮助,请发送邮件
到“owner-vrf@it.lists.it.agilent.com”.---您目前订阅了vrf:r***@soco.agilent.com要订阅,请发送一封空白电子邮件至“join-vrf@it.lists。
it.agilent.com“。要取消订阅,请发送一封空白电子邮件至”leave-vrf@it.lists.it.agilent.com“。要发送邮件到此邮件列表,请发送电子邮件至”vrf@agilent.com“。
如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。
以上来自于谷歌翻译
以下为原文
Elisabeth,
I can not reproduce your problem in VEE 6.0. But then, my VEEmatlab path does not contain the disabledberror function. My regular Matlab path does contain disabledberror, and it executes without error. It is a very short function and the first line
assigns a value to dbstat, so I don't see why there should be a problem if everything is installed without corruption.
On more general note for everyone, I've been using Matlab for something like 11 years, and I have never seen the figure generating construct:
fig = findobj ('Type','Figure','Tag',tagname);
if isempty(fig),
fig=figure('Tag',tagname);
else,
figure(fig),
end,
until it started showing up on the VRF. This looks to me like some nice figure management tools to keep yourself from obliterating figures accidentally, and for creating mnemonic tags, etc. On the other hand, if all you want to do is to pop up a plot,
it's completely unnecessary. The basic plotting commands like plot, scatter, mesh, etc. will create a figure window if one doesn't exist, and overwrite the current figure if there is one. To open a new figure window (so as not to overwrite an existing
plot), I use the simple form h=figure; The output variable h is the handle of the figure and coincidentally the figure number. Its use is optional. To make figure n the current figure I use figure(n). The function gcf returns the handle of the current
figure, and if there are no figure windows open it creates one. The function gcf can be used anywhere you need a figure handle, e.g. save(gcf,). I have written thousands of lines of Matlab functions, including a couple of fairly complex GUIs,
and have never wished for more extensive figure management than I have just described. My advice, for what it's worth, is that if your needs are simple like just a plot or two, you can easily dispense with the findobj and tag stuff and just let Matlab
figure out where to put your plot. It's pretty good at that, except you need to be sure to open a new figure if you don't want to overwrite the existing one.
Regards,
--
Bill Ossmann
Philips Ultrasound
e-mail:
bill.ossmann@philips.com
-----------------------------------------------------------------------------------------------------
Hi all,
Can someone help me with Matlab under Vee Pro 6.1. ?
I create a figure by using matlab script under vee pro and I would like to
save it automatically (that means without cliking on the matlab figure
window FILE-> EXPORT-> bmp file name). I would like also to define the bmp
filename in vee program.
I have done a first matlab script, without controlling the bmp filename, as
following:
*************** starting of matlab script
****************************************
fig = findobj ('Type','Figure','Tag',tagname);
if isempty(fig),
fig=figure('Tag',tagname);
else,
figure(fig),
end,
scatter(X,Y,S,C);
title('scatter');
saveas (fig,'d: .bmp','bmp');
*************** end of matlab scrip
****************************************
X,Y,S,C and tagname are the inputs of Matlab script box.
These lines are defined by default by selecting the "scatter" function,
except the last line.
But when I execute this, I have the following message with an OK button and
Abort button:
"Reference to uninitialized variable dbstat in
veepro6.1matlab oolboxmathlabgraphicsprivatedisabledberror"
I click OK and the figure is saved correctly.
Well, I have the figure saved as I wanted, but it is still not automatic.
Did someone already have already done an automatic saving of matlab figure?
Thanks for your help!
Elisabeth.
---
You are currently subscribed to vrf as:
bill.ossmann@philips.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
---
You are currently subscribed to vrf as: [email=r***@soco.agilent.com]r***@soco.agilent.com[/email]
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
伊丽莎白,我不能在VEE 6.0中重现你的问题。
但是,我的VEEmatlab路径不包含disabledberror功能。
我的常规Matlab路径确实包含disabledberror,并且执行时没有错误。
这是一个非常短的函数,第一行为dbstat指定一个值,所以我不明白为什么一切都安装没有损坏就应该有问题。对于每个人来说更一般的说明,我一直在使用Matlab来做类似的事情。
11年了,我从未见过生成构造的图:fig = findobj('Type','Figure','Tag',tagname); if isempty(fig),fig = figure('Tag',tagname);否则
,图(图),结束,直到它开始出现在VRF上。
这看起来像是一些不错的图形管理工具,可以防止你自己意外删除数字,以及创建助记符等。另一方面,如果你想要做的只是弹出一个情节,那就完全没必要了。
绘图,散射,网格等基本绘图命令将创建一个图窗口(如果不存在),并覆盖当前图形(如果有)。
要打开一个新的数字窗口(以便不覆盖现有的情节),我使用简单形式h = figure;
输出变量h是图的句柄,巧合是图号。
它的使用是可选的。
为了使数字n成为当前数字,我使用数字(n)。
函数gcf返回当前图形的句柄,如果没有图形窗口打开则创建一个。
函数gcf可以在需要图形处理的任何地方使用,例如
保存(GCF)。
我已经编写了数千行Matlab函数,包括一些相当复杂的GUI,并且从未希望进行比我刚才描述的更广泛的图形管理。
我的建议,值得一提的是,如果你的需求很简单,就像一两块情节一样,你可以轻松地省去findobj和标签的东西,让Matlabfigure把你的情节放在哪里。
这是相当不错的,除非你需要确保打开一个新的数字,如果你不想覆盖现有的.Regards, - Bill OssmannPhilips Ultrasounde-mail:bill.ossmann@philips.com----
--------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - -大家好,
有人可以在Vee Pro 6.1下使用Matlab帮助我。
?我在vee pro下使用matlab脚本创建了一个图形,我想自动保存它(这意味着没有在matlab图窗口FILE-> EXPORT-> bmp文件名上添加)。
我还想在vee程序中定义bmpfilename。我已经完成了第一个matlab脚本,没有控制bmp文件名,如下所示:***************启动matlab脚本***
************************************* fig = findobj('Type','Figure','
Tag',tagname); if isempty(fig),fig = figure('Tag',tagname); else,figure(fig),end,scatter(X,Y,S,C); title('scatter');
saveas(图,'d:.bmp','bmp'); ***************结束matlab脚本***************
************************* X,Y,S,C和标记名是Matlab脚本框的输入。这些行默认是通过选择来定义的
除了最后一行之外的“分散”功能。但是当我执行此操作时,我有以下消息,其中有一个OK按钮和按钮:“引用未初始化的变量dbstat inveepro6.1matlaboolboxmathlabgraphicsprivatedisabledberror”我单击确定并且图形被正确保存。
,我已经保存了我想要的数字,但它仍然不是自动的。已经有人已经做了自动保存matlab f
igure?感谢您的帮助!Elisabeth .---您目前订阅了vrf:bill.ossmann@philips.com订阅时发送一封空白电子邮件至“join-vrf@it.lists.it.agilent.com”.To
取消订阅发送空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。要发送邮件到此邮件列表,请发送电子邮件至“vrf@agilent.com”。如果您需要有关邮件列表的帮助,请发送邮件
到“owner-vrf@it.lists.it.agilent.com”.---您目前订阅了vrf:r***@soco.agilent.com要订阅,请发送一封空白电子邮件至“join-vrf@it.lists。
it.agilent.com“。要取消订阅,请发送一封空白电子邮件至”leave-vrf@it.lists.it.agilent.com“。要发送邮件到此邮件列表,请发送电子邮件至”vrf@agilent.com“。
如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。
以上来自于谷歌翻译
以下为原文
Elisabeth,
I can not reproduce your problem in VEE 6.0. But then, my VEEmatlab path does not contain the disabledberror function. My regular Matlab path does contain disabledberror, and it executes without error. It is a very short function and the first line
assigns a value to dbstat, so I don't see why there should be a problem if everything is installed without corruption.
On more general note for everyone, I've been using Matlab for something like 11 years, and I have never seen the figure generating construct:
fig = findobj ('Type','Figure','Tag',tagname);
if isempty(fig),
fig=figure('Tag',tagname);
else,
figure(fig),
end,
until it started showing up on the VRF. This looks to me like some nice figure management tools to keep yourself from obliterating figures accidentally, and for creating mnemonic tags, etc. On the other hand, if all you want to do is to pop up a plot,
it's completely unnecessary. The basic plotting commands like plot, scatter, mesh, etc. will create a figure window if one doesn't exist, and overwrite the current figure if there is one. To open a new figure window (so as not to overwrite an existing
plot), I use the simple form h=figure; The output variable h is the handle of the figure and coincidentally the figure number. Its use is optional. To make figure n the current figure I use figure(n). The function gcf returns the handle of the current
figure, and if there are no figure windows open it creates one. The function gcf can be used anywhere you need a figure handle, e.g. save(gcf,). I have written thousands of lines of Matlab functions, including a couple of fairly complex GUIs,
and have never wished for more extensive figure management than I have just described. My advice, for what it's worth, is that if your needs are simple like just a plot or two, you can easily dispense with the findobj and tag stuff and just let Matlab
figure out where to put your plot. It's pretty good at that, except you need to be sure to open a new figure if you don't want to overwrite the existing one.
Regards,
--
Bill Ossmann
Philips Ultrasound
e-mail:
bill.ossmann@philips.com
-----------------------------------------------------------------------------------------------------
Hi all,
Can someone help me with Matlab under Vee Pro 6.1. ?
I create a figure by using matlab script under vee pro and I would like to
save it automatically (that means without cliking on the matlab figure
window FILE-> EXPORT-> bmp file name). I would like also to define the bmp
filename in vee program.
I have done a first matlab script, without controlling the bmp filename, as
following:
*************** starting of matlab script
****************************************
fig = findobj ('Type','Figure','Tag',tagname);
if isempty(fig),
fig=figure('Tag',tagname);
else,
figure(fig),
end,
scatter(X,Y,S,C);
title('scatter');
saveas (fig,'d: .bmp','bmp');
*************** end of matlab scrip
****************************************
X,Y,S,C and tagname are the inputs of Matlab script box.
These lines are defined by default by selecting the "scatter" function,
except the last line.
But when I execute this, I have the following message with an OK button and
Abort button:
"Reference to uninitialized variable dbstat in
veepro6.1matlab oolboxmathlabgraphicsprivatedisabledberror"
I click OK and the figure is saved correctly.
Well, I have the figure saved as I wanted, but it is still not automatic.
Did someone already have already done an automatic saving of matlab figure?
Thanks for your help!
Elisabeth.
---
You are currently subscribed to vrf as:
bill.ossmann@philips.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
---
You are currently subscribed to vrf as: [email=r***@soco.agilent.com]r***@soco.agilent.com[/email]
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
举报