From: us on
"dhanamjaya rao"
> but..if i pass the values from a FUNCTION SAMPLE5 as follows...
> r=sample5();

well... obviously SAMPLE5 is not returning what you think it should - and, most likely, your facing a typical FP problem...
no more help as CSSM does not know the function's engine...

us
From: dhanamjaya rao on
"us " <us(a)neurol.unizh.ch> wrote in message <hs6c1m$td$1(a)fred.mathworks.com>...
> "dhanamjaya rao"
> > but..if i pass the values from a FUNCTION SAMPLE5 as follows...
> > r=sample5();
>
> well... obviously SAMPLE5 is not returning what you think it should - and, most likely, your facing a typical FP problem...
> no more help as CSSM does not know the function's engine...
>
> us

sample5 program continue as follows.....

function z=sample5()
clc;
clear all;

ifftin=qam64();
%here QAM modulated data will be input to the below iift and it is
iift in=Columns 1 through 6

7.0000 + 1.0000i 1.0000 + 3.0000i 3.0000 - 3.0000i 5.0000 + 7.0000i 3.0000 - 1.0000i -5.0000 - 1.0000i

Columns 7 through 12

-1.0000 - 3.0000i 3.0000 - 5.0000i 7.0000 + 5.0000i -3.0000 - 7.0000i 1.0000 - 7.0000i 7.0000 + 5.0000i

Columns 13 through 18

3.0000 - 1.0000i 5.0000 - 7.0000i -5.0000 - 3.0000i -1.0000 + 3.0000i -5.0000 - 7.0000i 3.0000 - 7.0000i

Columns 19 through 24

-7.0000 - 3.0000i 1.0000 - 5.0000i -7.0000 - 3.0000i -3.0000 + 7.0000i 7.0000 - 3.0000i 7.0000 - 7.0000i

Columns 25 through 30

-5.0000 + 3.0000i -7.0000 + 7.0000i -5.0000 + 5.0000i -5.0000 + 5.0000i 5.0000 + 3.0000i 1.0000 + 3.0000i

Columns 31 through 36

-3.0000 - 5.0000i 1.0000 + 7.0000i -1.0000 + 7.0000i 7.0000 + 3.0000i 1.0000 - 3.0000i -5.0000 - 1.0000i

Columns 37 through 42

1.0000 - 5.0000i 7.0000 - 5.0000i -5.0000 - 3.0000i 1.0000 + 5.0000i -1.0000 - 7.0000i -1.0000 + 1.0000i

Column 43

7.0000 - 7.0000i
.....
ifftout=ifft(ifftin,64);


z=fft(ifftout,64);....

this is the function called....
From: dpb on
dhanamjaya rao wrote:
....

> z=fft(ifftout,64);....
>
> this is the function called....

Try FAQ 6.1 at <http://matlabwiki.mathworks.com/MATLAB_FAQ>

--
From: dhanamjaya rao on
dpb <none(a)non.net> wrote in message <hs6g57$ke5$1(a)news.eternal-september.org>...
> dhanamjaya rao wrote:
> ...
>
> > z=fft(ifftout,64);....
> >
> > this is the function called....
>
> Try FAQ 6.1 at <http://matlabwiki.mathworks.com/MATLAB_FAQ>
>
> --


my problem is
if i am comparing two explicitly specified matrices i am getting the result.......

but if im passing those matrices by function sample5 as specified above... i am not getting the result....
From: dpb on
dhanamjaya rao wrote:
> dpb <none(a)non.net> wrote in message
> <hs6g57$ke5$1(a)news.eternal-september.org>...
>> dhanamjaya rao wrote:
>> ...
>>
>> > z=fft(ifftout,64);....
>> > > this is the function called....
>>
>> Try FAQ 6.1 at <http://matlabwiki.mathworks.com/MATLAB_FAQ>
>>
>> --
>
>
> my problem is if i am comparing two explicitly specified matrices i am
> getting the result.......
>
> but if im passing those matrices by function sample5 as specified
> above... i am not getting the result....

And the FAQ (and the references therein) explain why...

Computing the values is different than converting from a specified
number of decimal digits to internal representation. Read the last part
of the FAQ again about dangers of using "==" for floating-point
comparisons and the solution to same.

--