two questions #2

  • Follow


I've got tow questions here.The first is I wanted to run a new M-file by pushing a pushbutton which I created in the M-file 'g.m'.So how should I write the callback function?Second question:how to use function'coneplot'(I wanted to draw a 3D picture of dipole) Can anybody help me with that?
0
Reply yunle 11/17/2009 11:43:03 PM

On Nov 17, 6:43=A0pm, "yunle wei" <weiyun...@163.com> wrote:
> I've got tow questions here.The first is I wanted to run a new M-file by =
pushing a pushbutton which I created in the M-file 'g.m'.So how should I wr=
ite the callback function?Second question:how to use function'coneplot'(I w=
anted to draw a 3D picture of dipole) Can anybody help me with that?

---------------------------------------------------------------------------=
-------------------------
For the first question, in the callback function of the pushbutton,
simply call the second m-file and pass its arguments, like this:

function btnButtonInGdotM_Callback(hObject, eventdata, handles)
    [theResults1, theResults2] =3D newMFile(myArg1, myArg2, myLast Arg);

Replace those names with your actual function and argument names, and
numbers of them, obviously.
0
Reply ImageAnalyst 11/18/2009 3:29:46 AM


1 Replies
152 Views

(page loaded in 0.029 seconds)

Similiar Articles:













7/19/2012 3:52:08 PM


Reply: