Wrong answer using " fft (ifft ( vector )) "

1 view (last 30 days)
Ahmed
Ahmed on 6 Dec 2014
Answered: Andrew Newell on 6 Dec 2014
For my following vector when I use fft (ifft ( vector )) the answer is almost same as vector but at 129th position its different whereas the answer should be same as vector. Please help.
vector=
[7780728.00000002 + 0.00000000000000i
-704040.128789431 + 826990.130142622i
202117.736796071 - 488696.863608525i
161830.725894494 + 100179.120867759i
94659.4623867357 - 304196.718909518i
2479.98271226938 + 1782.57549614427i
-74964.3426171567 - 133853.477777015i
-25775.8132603373 + 53586.8076685280i
34127.9157245659 - 8245.72786049170i
-23648.8817300937 + 189372.489645412i
74950.0976212543 - 52473.1224381735i
30528.7841565449 - 22617.8807848162i
-39414.0983901264 - 78835.2055814314i
-62472.7860404480 + 25273.0845804344i
-12010.0471284040 - 27817.5387326673i
-3047.17503923175 + 43722.1061046513i
34282.1533144400 - 15748.2038123799i
-13661.4603095463 + 41234.7760534391i
-154.227838070946 - 24277.7650534674i
1675.37055378317 + 25338.3132526987i
18870.3898274926 - 14160.5074954476i
-18257.0041458675 + 8105.27960442942i
-1712.66327800907 - 16846.6571536333i
-9558.03672840070 + 15072.1135861234i
5384.34947733455 - 12783.7568795897i
-9332.99033512075 + 21708.9518780212i
13280.1330597558 - 13260.6984048386i
-3494.90682028490 - 3336.68764112135i
9456.20190966525 - 994.041379001596i
-9967.12770115129 + 9009.83312469708i
-826.289622987304 - 6903.57841885145i
-4386.78704928013 + 3844.54615247906i
9313.54940019223 - 4220.10236286909i
-1100.91396949125 + 6482.19421240512i
3646.11571178929 - 2739.01552617434i
-5498.72306876628 - 4032.28620768965i
3601.47182529597 - 867.544157396844i
-1092.48168613894 + 2354.39489241142i
-306.428000228562 - 993.942891072123i
-805.789609549491 + 3127.00906277910i
3245.14287449810 + 63.2392979114170i
-2538.85666449881 + 1053.11051621736i
-151.033333363830 - 2843.99725333153i
-1181.61338805775 + 357.087772815020i
3626.01233450435 - 592.389790502919i
-2054.50176516311 + 1512.31637394130i
603.131683446449 - 228.143661079702i
344.133021465751 - 699.408194562945i
1081.69154230941 - 518.476149894943i
-1183.62599651392 + 909.406959776180i
-399.667908487313 - 431.596155448385i
-754.093938425446 + 411.204672266773i
1363.08500761141 + 124.783928207076i
-30.3947730292100 + 514.062938791500i
492.382685070656 - 116.162542080442i
-320.692106356068 - 457.051173316921i
177.421964479416 - 69.0324629027450i
-197.931022449194 + 42.2846319174688i
-48.2701140021152 + 0.294338635022289i
-284.259425210317 + 163.112328190110i
45.8895733642220 + 15.3307907278162i
-133.312555400343 + 136.440387485646i
198.867092195099 - 0.251068240149436i
-14.3845759748426 + 8.27120990755430i
139.462818344935 - 11.6558043920140i
-132.973732286813 - 96.4667885131914i
-4.08571614022602 - 34.1648989560230i
-42.0956047286522 + 12.4755591169815i
13.2478873459323 + 44.2522974278235i
-17.2820351840570 + 29.9446008246899i
53.3850629487980 - 23.9090532713165i
-22.0317484336058 - 16.1230727154151i
41.1028782049466 - 7.35988318743858i
-24.9417021141124 - 7.92075649374294i
9.12124055058567 + 8.13799523417446i
-17.5271617013514 + 0.563845512418187i
3.94632935663763 + 12.4313825186930i
-3.70476611168676 - 5.30311821559737i
3.06193097777053 + 1.00091418716982i
-4.54159813775756 + 4.57813803578718i
5.38538749641999 + 2.18136159233481i
-3.57785416739350 - 1.28920096556558i
2.31267945399431 - 0.577274221697542i
-4.43678376248229 - 2.65642939066368i
2.60326413188950 + 1.02446333976858i
-1.06121852778580 - 2.03188025414572i
0.495522549243257 + 1.91716212956805i
0.0544740407725952 - 0.0482217707701788i
0.690468683223922 - 0.125582644233218i
-0.140933921022411 - 0.0639613943290558i
0.563242778306203 - 0.227168953895903i
-0.782486620058569 - 0.262254238080710i
0.447820015142293 + 0.423426499848530i
-0.294404183995191 - 0.148296274028251i
0.224761832071568 + 0.368155269921016i
-0.104585222688274 - 0.255765827605923i
-0.00438642470689022 + 0.0823268205868129i
0.0326129111700569 - 0.0971112931005646i
-0.0245611165112139 + 0.000944274904763300i
-0.0477607996507022 + 0.00110462126915906i
0.0533015704419240 + 0.0332417413355029i
-0.0379266966479346 - 0.00958766896606914i
0.0342546487954691 + 0.0259109529512868i
-0.0286727865206304 - 0.0472488730233624i
0.0161119938182619 + 0.0176266762420685i
0.00803028335075501 - 0.0178597447837534i
-0.00257726450817266 + 0.0182288854232999i
-0.00146529102025032 - 0.00261820689754035i
0.00163401178429870 - 0.000323529117694954i
-0.00154898206769461 - 0.00186687836741879i
0.00122878743542757 + 0.00309714165033964i
-0.00515767236002051 - 0.00265611185241808i
0.00291086002232954 + 0.00178023186520149i
-0.000181702342109935 - 0.00266373339174519i
0.000369178076348870 + 0.00266920317186702i
-0.000108050295876649 - 0.00145547897830359i
-0.000520976913026234 + 0.000213806926469323i
0.000358180388085063 - 0.000404510411622028i
7.55805681909821e-05 + 0.000185188663942905i
-0.000150396871641782 + 8.87128642499440e-05i
0.000136131583127343 + 9.52325575265909e-05i
-0.000166395099996178 - 0.000191448224334359i
8.81008466137997e-05 + 0.000203623915092302i
-2.58914433876904e-05 - 0.000168266536836068i
5.17271824163149e-06 + 7.02367998494162e-05i
5.17696244930012e-05 - 3.35462094252965e-05i
-2.88621393685955e-05 + 3.62992281450525e-05i
-2.66513503233214e-06 - 7.16601112691218e-06i
-4.67600000000000e-27 + 0.00000000000000i
-2.66513503233214e-06 + 7.16601112691218e-06i
-2.88621393685955e-05 - 3.62992281450525e-05i
5.17696244930012e-05 + 3.35462094252965e-05i
5.17271824163149e-06 - 7.02367998494162e-05i
-2.58914433876904e-05 + 0.000168266536836068i
8.81008466137997e-05 - 0.000203623915092302i
-0.000166395099996178 + 0.000191448224334359i
0.000136131583127343 - 9.52325575265909e-05i
-0.000150396871641782 - 8.87128642499440e-05i
7.55805681909821e-05 - 0.000185188663942905i
0.000358180388085063 + 0.000404510411622028i
-0.000520976913026234 - 0.000213806926469323i
-0.000108050295876649 + 0.00145547897830359i
0.000369178076348870 - 0.00266920317186702i
-0.000181702342109935 + 0.00266373339174519i
0.00291086002232954 - 0.00178023186520149i
-0.00515767236002051 + 0.00265611185241808i
0.00122878743542757 - 0.00309714165033964i
-0.00154898206769461 + 0.00186687836741879i
0.00163401178429870 + 0.000323529117694954i
-0.00146529102025032 + 0.00261820689754035i
-0.00257726450817266 - 0.0182288854232999i
0.00803028335075501 + 0.0178597447837534i
0.0161119938182619 - 0.0176266762420685i
-0.0286727865206304 + 0.0472488730233624i
0.0342546487954691 - 0.0259109529512868i
-0.0379266966479346 + 0.00958766896606914i
0.0533015704419240 - 0.0332417413355029i
-0.0477607996507022 - 0.00110462126915906i
-0.0245611165112139 - 0.000944274904763300i
0.0326129111700569 + 0.0971112931005646i
-0.00438642470689022 - 0.0823268205868129i
-0.104585222688274 + 0.255765827605923i
0.224761832071568 - 0.368155269921016i
-0.294404183995191 + 0.148296274028251i
0.447820015142293 - 0.423426499848530i
-0.782486620058569 + 0.262254238080710i
0.563242778306203 + 0.227168953895903i
-0.140933921022411 + 0.0639613943290558i
0.690468683223922 + 0.125582644233218i
0.0544740407725952 + 0.0482217707701788i
0.495522549243257 - 1.91716212956805i
-1.06121852778580 + 2.03188025414572i
2.60326413188950 - 1.02446333976858i
-4.43678376248229 + 2.65642939066368i
2.31267945399431 + 0.577274221697542i
-3.57785416739350 + 1.28920096556558i
5.38538749641999 - 2.18136159233481i
-4.54159813775756 - 4.57813803578718i
3.06193097777053 - 1.00091418716982i
-3.70476611168676 + 5.30311821559737i
3.94632935663763 - 12.4313825186930i
-17.5271617013514 - 0.563845512418187i
9.12124055058567 - 8.13799523417446i
-24.9417021141124 + 7.92075649374294i
41.1028782049466 + 7.35988318743858i
-22.0317484336058 + 16.1230727154151i
53.3850629487980 + 23.9090532713165i
-17.2820351840570 - 29.9446008246899i
13.2478873459323 - 44.2522974278235i
-42.0956047286522 - 12.4755591169815i
-4.08571614022602 + 34.1648989560230i
-132.973732286813 + 96.4667885131914i
139.462818344935 + 11.6558043920140i
-14.3845759748426 - 8.27120990755430i
198.867092195099 + 0.251068240149436i
-133.312555400343 - 136.440387485646i
45.8895733642220 - 15.3307907278162i
-284.259425210317 - 163.112328190110i
-48.2701140021152 - 0.294338635022289i
-197.931022449194 - 42.2846319174688i
177.421964479416 + 69.0324629027450i
-320.692106356068 + 457.051173316921i
492.382685070656 + 116.162542080442i
-30.3947730292100 - 514.062938791500i
1363.08500761141 - 124.783928207076i
-754.093938425446 - 411.204672266773i
-399.667908487313 + 431.596155448385i
-1183.62599651392 - 909.406959776180i
1081.69154230941 + 518.476149894943i
344.133021465751 + 699.408194562945i
603.131683446449 + 228.143661079702i
-2054.50176516311 - 1512.31637394130i
3626.01233450435 + 592.389790502919i
-1181.61338805775 - 357.087772815020i
-151.033333363830 + 2843.99725333153i
-2538.85666449881 - 1053.11051621736i
3245.14287449810 - 63.2392979114170i
-805.789609549491 - 3127.00906277910i
-306.428000228562 + 993.942891072123i
-1092.48168613894 - 2354.39489241142i
3601.47182529597 + 867.544157396844i
-5498.72306876628 + 4032.28620768965i
3646.11571178929 + 2739.01552617434i
-1100.91396949125 - 6482.19421240512i
9313.54940019223 + 4220.10236286909i
-4386.78704928013 - 3844.54615247906i
-826.289622987304 + 6903.57841885145i
-9967.12770115129 - 9009.83312469708i
9456.20190966525 + 994.041379001596i
-3494.90682028490 + 3336.68764112135i
13280.1330597558 + 13260.6984048386i
-9332.99033512075 - 21708.9518780212i
5384.34947733455 + 12783.7568795897i
-9558.03672840070 - 15072.1135861234i
-1712.66327800907 + 16846.6571536333i
-18257.0041458675 - 8105.27960442942i
18870.3898274926 + 14160.5074954476i
1675.37055378317 - 25338.3132526987i
-154.227838070946 + 24277.7650534674i
-13661.4603095463 - 41234.7760534391i
34282.1533144400 + 15748.2038123799i
-3047.17503923175 - 43722.1061046513i
-12010.0471284040 + 27817.5387326673i
-62472.7860404480 - 25273.0845804344i
-39414.0983901264 + 78835.2055814314i
30528.7841565449 + 22617.8807848162i
74950.0976212543 + 52473.1224381735i
-23648.8817300937 - 189372.489645412i
34127.9157245659 + 8245.72786049170i
-25775.8132603373 - 53586.8076685280i
-74964.3426171567 + 133853.477777015i
2479.98271226938 - 1782.57549614427i
94659.4623867357 + 304196.718909518i
161830.725894494 - 100179.120867759i
202117.736796071 + 488696.863608525i
-704040.128789431 - 826990.130142622i]
fft (ifft ( vector ))=
[7780728.00000002 + 0.00000000000000i
-704040.128789431 + 826990.130142622i
202117.736796071 - 488696.863608525i
161830.725894494 + 100179.120867758i
94659.4623867357 - 304196.718909518i
2479.98271226934 + 1782.57549614419i
-74964.3426171567 - 133853.477777015i
-25775.8132603373 + 53586.8076685280i
34127.9157245658 - 8245.72786049167i
-23648.8817300937 + 189372.489645412i
74950.0976212544 - 52473.1224381736i
30528.7841565450 - 22617.8807848162i
-39414.0983901263 - 78835.2055814313i
-62472.7860404480 + 25273.0845804343i
-12010.0471284040 - 27817.5387326673i
-3047.17503923177 + 43722.1061046513i
34282.1533144400 - 15748.2038123799i
-13661.4603095462 + 41234.7760534391i
-154.227838070945 - 24277.7650534674i
1675.37055378320 + 25338.3132526986i
18870.3898274926 - 14160.5074954475i
-18257.0041458675 + 8105.27960442941i
-1712.66327800908 - 16846.6571536333i
-9558.03672840071 + 15072.1135861233i
5384.34947733460 - 12783.7568795897i
-9332.99033512074 + 21708.9518780212i
13280.1330597558 - 13260.6984048386i
-3494.90682028490 - 3336.68764112134i
9456.20190966523 - 994.041379001524i
-9967.12770115129 + 9009.83312469706i
-826.289622987306 - 6903.57841885143i
-4386.78704928007 + 3844.54615247907i
9313.54940019227 - 4220.10236286916i
-1100.91396949119 + 6482.19421240504i
3646.11571178932 - 2739.01552617438i
-5498.72306876626 - 4032.28620768965i
3601.47182529602 - 867.544157396903i
-1092.48168613891 + 2354.39489241139i
-306.428000228552 - 993.942891072119i
-805.789609549516 + 3127.00906277912i
3245.14287449801 + 63.2392979113595i
-2538.85666449877 + 1053.11051621738i
-151.033333363801 - 2843.99725333153i
-1181.61338805775 + 357.087772815038i
3626.01233450437 - 592.389790502937i
-2054.50176516309 + 1512.31637394131i
603.131683446460 - 228.143661079677i
344.133021465721 - 699.408194562909i
1081.69154230939 - 518.476149894922i
-1183.62599651400 + 909.406959776190i
-399.667908487316 - 431.596155448390i
-754.093938425439 + 411.204672266711i
1363.08500761141 + 124.783928207136i
-30.3947730292357 + 514.062938791468i
492.382685070721 - 116.162542080479i
-320.692106356081 - 457.051173316904i
177.421964479463 - 69.0324629027444i
-197.931022449208 + 42.2846319174528i
-48.2701140020930 + 0.294338635021632i
-284.259425210299 + 163.112328190094i
45.8895733642676 + 15.3307907278322i
-133.312555400342 + 136.440387485702i
198.867092195069 - 0.251068240162567i
-14.3845759747783 + 8.27120990751428i
139.462818345288 - 11.6558043919504i
-132.973732286773 - 96.4667885132076i
-4.08571614023822 - 34.1648989560636i
-42.0956047286381 + 12.4755591169451i
13.2478873460022 + 44.2522974277636i
-17.2820351840646 + 29.9446008246841i
53.3850629487876 - 23.9090532713399i
-22.0317484335837 - 16.1230727154293i
41.1028782050433 - 7.35988318743318i
-24.9417021141208 - 7.92075649375283i
9.12124055060269 + 8.13799523417220i
-17.5271617013441 + 0.563845512434455i
3.94632935667869 + 12.4313825186400i
-3.70476611170761 - 5.30311821561224i
3.06193097779732 + 1.00091418710309i
-4.54159813776505 + 4.57813803580899i
5.38538749645318 + 2.18136159243204i
-3.57785416734896 - 1.28920096557209i
2.31267945396604 - 0.577274221694836i
-4.43678376246407 - 2.65642939067914i
2.60326413195025 + 1.02446333970511i
-1.06121852777346 - 2.03188025413238i
0.495522549268458 + 1.91716212954634i
0.0544740406776327 - 0.0482217707098016i
0.690468683325889 - 0.125582644209999i
-0.140933921017677 - 0.0639613943354789i
0.563242778304016 - 0.227168953892487i
-0.782486620030113 - 0.262254238113655i
0.447820015171146 + 0.423426499947254i
-0.294404183994629 - 0.148296274111317i
0.224761832076410 + 0.368155269922909i
-0.104585222710853 - 0.255765827634036i
-0.00438642483914009 + 0.0823268207368528i
0.0326129111659839 - 0.0971112931171092i
-0.0245611164807542 + 0.000944274853964089i
-0.0477607996699589 + 0.00110462125917365i
0.0533015704004356 + 0.0332417412596442i
-0.0379266966624527 - 0.00958766897269925i
0.0342546487972868 + 0.0259109529696389i
-0.0286727865305920 - 0.0472488730229088i
0.0161119938447882 + 0.0176266761882289i
0.00803028336406442 - 0.0178597447920765i
-0.00257726447671303 + 0.0182288854313128i
-0.00146529098537940 - 0.00261820687933323i
0.00163401176359912 - 0.000323529182423954i
-0.00154898207074439 - 0.00186687835926591i
0.00122878746515198 + 0.00309714167292441i
-0.00515767230899655 - 0.00265611189695392i
0.00291085987555562 + 0.00178023190164822i
-0.000181702367626713 - 0.00266373339093207i
0.000369178073924559 + 0.00266920317312724i
-0.000108050271592219 - 0.00145547893802700i
-0.000520976871484891 + 0.000213806990359444i
0.000358180400326091 - 0.000404510416956327i
7.55805928065456e-05 + 0.000185188702744199i
-0.000150396902881766 + 8.87128262547776e-05i
0.000136131551698782 + 9.52326072365395e-05i
-0.000166395137512154 - 0.000191448198165745i
8.81008860460497e-05 + 0.000203623920242535i
-2.58914396908949e-05 - 0.000168266534274153i
5.17285661771894e-06 + 7.02367979101837e-05i
5.17696316819638e-05 - 3.35462100338191e-05i
-2.88621959043667e-05 + 3.62991413567215e-05i
-2.66509596258402e-06 - 7.16611975803971e-06i
4.65661287307739e-10 + 0.00000000000000i
-2.66509596258402e-06 + 7.16611975803971e-06i
-2.88621959043667e-05 - 3.62991413567215e-05i
5.17696316819638e-05 + 3.35462100338191e-05i
5.17285661771894e-06 - 7.02367979101837e-05i
-2.58914396908949e-05 + 0.000168266534274153i
8.81008860460497e-05 - 0.000203623920242535i
-0.000166395137512154 + 0.000191448198165745i
0.000136131551698782 - 9.52326072365395e-05i
-0.000150396902881766 - 8.87128262547776e-05i
7.55805928065456e-05 - 0.000185188702744199i
0.000358180400326091 + 0.000404510416956327i
-0.000520976871484891 - 0.000213806990359444i
-0.000108050271592219 + 0.00145547893802700i
0.000369178073924559 - 0.00266920317312724i
-0.000181702367626713 + 0.00266373339093207i
0.00291085987555562 - 0.00178023190164822i
-0.00515767230899655 + 0.00265611189695392i
0.00122878746515198 - 0.00309714167292441i
-0.00154898207074439 + 0.00186687835926591i
0.00163401176359912 + 0.000323529182423954i
-0.00146529098537940 + 0.00261820687933323i
-0.00257726447671303 - 0.0182288854313128i
0.00803028336406442 + 0.0178597447920765i
0.0161119938447882 - 0.0176266761882289i
-0.0286727865305920 + 0.0472488730229088i
0.0342546487972868 - 0.0259109529696389i
-0.0379266966624527 + 0.00958766897269925i
0.0533015704004356 - 0.0332417412596442i
-0.0477607996699589 - 0.00110462125917365i
-0.0245611164807542 - 0.000944274853964089i
0.0326129111659839 + 0.0971112931171092i
-0.00438642483914009 - 0.0823268207368528i
-0.104585222710853 + 0.255765827634036i
0.224761832076410 - 0.368155269922909i
-0.294404183994629 + 0.148296274111317i
0.447820015171146 - 0.423426499947254i
-0.782486620030113 + 0.262254238113655i
0.563242778304016 + 0.227168953892487i
-0.140933921017677 + 0.0639613943354789i
0.690468683325889 + 0.125582644209999i
0.0544740406776327 + 0.0482217707098016i
0.495522549268458 - 1.91716212954634i
-1.06121852777346 + 2.03188025413238i
2.60326413195025 - 1.02446333970511i
-4.43678376246407 + 2.65642939067914i
2.31267945396604 + 0.577274221694836i
-3.57785416734896 + 1.28920096557209i
5.38538749645318 - 2.18136159243204i
-4.54159813776505 - 4.57813803580899i
3.06193097779732 - 1.00091418710309i
-3.70476611170761 + 5.30311821561224i
3.94632935667869 - 12.4313825186400i
-17.5271617013441 - 0.563845512434455i
9.12124055060269 - 8.13799523417220i
-24.9417021141208 + 7.92075649375283i
41.1028782050433 + 7.35988318743318i
-22.0317484335837 + 16.1230727154293i
53.3850629487876 + 23.9090532713399i
-17.2820351840646 - 29.9446008246841i
13.2478873460022 - 44.2522974277636i
-42.0956047286381 - 12.4755591169451i
-4.08571614023822 + 34.1648989560636i
-132.973732286773 + 96.4667885132076i
139.462818345288 + 11.6558043919504i
-14.3845759747783 - 8.27120990751428i
198.867092195069 + 0.251068240162567i
-133.312555400342 - 136.440387485702i
45.8895733642676 - 15.3307907278322i
-284.259425210299 - 163.112328190094i
-48.2701140020930 - 0.294338635021632i
-197.931022449208 - 42.2846319174528i
177.421964479463 + 69.0324629027444i
-320.692106356081 + 457.051173316904i
492.382685070721 + 116.162542080479i
-30.3947730292357 - 514.062938791468i
1363.08500761141 - 124.783928207136i
-754.093938425439 - 411.204672266711i
-399.667908487316 + 431.596155448390i
-1183.62599651400 - 909.406959776190i
1081.69154230939 + 518.476149894922i
344.133021465721 + 699.408194562909i
603.131683446460 + 228.143661079677i
-2054.50176516309 - 1512.31637394131i
3626.01233450437 + 592.389790502937i
-1181.61338805775 - 357.087772815038i
-151.033333363801 + 2843.99725333153i
-2538.85666449877 - 1053.11051621738i
3245.14287449801 - 63.2392979113595i
-805.789609549516 - 3127.00906277912i
-306.428000228552 + 993.942891072119i
-1092.48168613891 - 2354.39489241139i
3601.47182529602 + 867.544157396903i
-5498.72306876626 + 4032.28620768965i
3646.11571178932 + 2739.01552617438i
-1100.91396949119 - 6482.19421240504i
9313.54940019227 + 4220.10236286916i
-4386.78704928007 - 3844.54615247907i
-826.289622987306 + 6903.57841885143i
-9967.12770115129 - 9009.83312469706i
9456.20190966523 + 994.041379001524i
-3494.90682028490 + 3336.68764112134i
13280.1330597558 + 13260.6984048386i
-9332.99033512074 - 21708.9518780212i
5384.34947733460 + 12783.7568795897i
-9558.03672840071 - 15072.1135861233i
-1712.66327800908 + 16846.6571536333i
-18257.0041458675 - 8105.27960442941i
18870.3898274926 + 14160.5074954475i
1675.37055378320 - 25338.3132526986i
-154.227838070945 + 24277.7650534674i
-13661.4603095462 - 41234.7760534391i
34282.1533144400 + 15748.2038123799i
-3047.17503923177 - 43722.1061046513i
-12010.0471284040 + 27817.5387326673i
-62472.7860404480 - 25273.0845804343i
-39414.0983901263 + 78835.2055814313i
30528.7841565450 + 22617.8807848162i
74950.0976212544 + 52473.1224381736i
-23648.8817300937 - 189372.489645412i
34127.9157245658 + 8245.72786049167i
-25775.8132603373 - 53586.8076685280i
-74964.3426171567 + 133853.477777015i
2479.98271226934 - 1782.57549614419i
94659.4623867357 + 304196.718909518i
161830.725894494 - 100179.120867758i
202117.736796071 + 488696.863608525i
-704040.128789431 - 826990.130142622i]

Answers (1)

Andrew Newell
Andrew Newell on 6 Dec 2014
The FFT algorithm is a numeric algorithm, with the inevitable round-off errors (see Floating point numbers), so you can't expect exact agreement.
Try the command
max(abs(vector-fft(ifft(vector))))
You'll find the maximum difference is about 1.8e-10.

Categories

Find more on Fourier Analysis and Filtering in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!