From: Chia Hua on
I have two figures
figure(1)
margin(x)
figure(2)
margin(y)
i want generate a figure which contain these two figures( not subplot).
that show like
bode(x,y)
but i want to have "margin" information.
From: nanren888 on
"Chia Hua" <muhseuel(a)hotmail.com> wrote in message <hhetce$q11$1(a)fred.mathworks.com>...
> I have two figures
> figure(1)
> margin(x)
> figure(2)
> margin(y)
> i want generate a figure which contain these two figures( not subplot).
> that show like
> bode(x,y)
> but i want to have "margin" information.

Say again?
Not subplot:
Ok, so two traces?

[aX,fX] = margin(x);
[aY,fY] = margin(y);
plot(fX,aX,fY,aY);

If you have gain or phase margin info output, how do you get it now?
From: Chia Hua on

> > I have two figures
> > figure(1)
> > margin(x)
> > figure(2)
> > margin(y)
> > i want generate a figure which contain these two figures( not subplot).
> > that show like
> > bode(x,y)
> > but i want to have "margin" information.
>
> Say again?
> Not subplot:
> Ok, so two traces?
>
> [aX,fX] = margin(x);
> [aY,fY] = margin(y);
> plot(fX,aX,fY,aY);
>
> If you have gain or phase margin info output, how do you get it now?

That can show any traces....
margin() %that can show gain & margin info in bode diagram
From: nanren888 on
"Chia Hua" <muhseuel(a)hotmail.com> wrote in message <hhh1ok$6g8$1(a)fred.mathworks.com>...
>
> > > I have two figures
> > > figure(1)
> > > margin(x)
> > > figure(2)
> > > margin(y)
> > > i want generate a figure which contain these two figures( not subplot).
> > > that show like
> > > bode(x,y)
> > > but i want to have "margin" information.
> >
> > Say again?
> > Not subplot:
> > Ok, so two traces?
> >
> > [aX,fX] = margin(x);
> > [aY,fY] = margin(y);
> > plot(fX,aX,fY,aY);
> >
> > If you have gain or phase margin info output, how do you get it now?
>
> That can show any traces....
> margin() %that can show gain & margin info in bode diagram

Sorry I still have no idea what you want.
Do you want code to calculate gain & phase margin?
If so, what is the two plot thing?
&#25105;&#30475;&#19981;&#25026;&#12290;&#20013;&#25991;&#20063;&#21487;&#20197;&#12290;
Anyone else help?