Re: reading of complex values
- From: Tim Wescott <tim@xxxxxxxxxxxxxxxx>
- Date: Tue, 03 Jul 2007 09:38:49 -0700
Medris wrote:
Hi,As others have pointed out, you're trying to get superficial information, but you're not supplying the deeper information that one needs to answer your question.
I would like to ask this simple question, how can I get the complex value
in DSP. when I read the sumation of complex value i got only real value.
Any help.
Example:
x[i].re=2;
x[i].im=3;
I got x2[i]=5 not 2+3i
so how can I get the complex value.
What language? If it's C++, you're loading x (which is presumably of type complex), but you're querying x2 (which is of entirely unknown type). If it's something else, then how does x2 relate to x?
Even better questions to answer would be:
* How is x[i] stored?
* What is it's internal structure?
* Is x of an intrinsic type, or is a library type? (note: in C++
the complex type is a library class defined in the 'math' header
file; in Scilab (and Matlab, I think) all numbers are stored as
matrices of complex -- real scalars are just a special case).
* What does the compiler (or interpreter, or compiler+library) do
with 'x ='; what do they do when you attempt to print x?
If you answer these questions, then you should have no trouble answering your questions, and all related ones, on your own.
--
Tim Wescott
Wescott Design Services
http://www.wescottdesign.com
Do you need to implement control loops in software?
"Applied Control Theory for Embedded Systems" gives you just what it says.
See details at http://www.wescottdesign.com/actfes/actfes.html
.
- References:
- reading of complex values
- From: Medris
- reading of complex values
- Prev by Date: Re: reading of complex values
- Next by Date: Re: reading of complex values
- Previous by thread: Re: reading of complex values
- Next by thread: Teager-Kaiser Energy Operators of dtmf
- Index(es):
Relevant Pages
|