On Mar 22, 12:43=A0pm, "xin xin" <threegol...@gmail.com> wrote:
> "Roger Stafford" <ellieandrogerxy...@mindspring.com.invalid> wrote in mes=
sage <gq54ph$po...@fred.mathworks.com>...
> > "xin xin" <threegol...@gmail.com> wrote in message <gq53i6$9e...@fred.m=
athworks.com>...
> > > as we know, we can calculate the angle and amplitude from angle() and=
abs()
> > > but is there any function can reverse it, get the complex data series=
from angle series and amplitude.
> > > thx
>
> > =A0 If t is the 'angle' and r is the 'abs' of a complex quantity z, the=
n
>
> > =A0z =3D r.*exp(t*sqrt(1));
>
> > Roger Stafford
>
> thanks for your reply, but this equation can be used when r and t is one =
dimension.
> and =A0r or t are vector in my application. any other function applicable=
?
The expression that Roger wrote is perfectly applicable to your
situation. Try it!
If "t" is a vector then the output of "exp(t*sqrt(1))" is also a
vector of the same length as "t". The operator preceding it "r."
means to multiply the vector "r" component by component with
whatever vector that follows it. The result is again a vector, which
apparently is what you want.
Jim
