AnsweredAssumed Answered

vrf SAVING MATLAB FIGURE IN BMP FORMAT AUTOMATICALLY IN VEE PROGRAM

Question asked by VRFuser on Nov 18, 2003

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: rsb@soco.agilent.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".

Outcomes