How do I obtain the amplitude of a PSD in dBm/kHz?

2 views (last 30 days)
Good day! So here are my codes:
psdn = [-45.3953261464647;-46.3405836328469;-47.2863894168202;-48.2323917870060;-49.1782390282922;-50.1235796989143;-51.0680629071836;-52.0113385875735;-52.9530577758774;-53.8928728831512;-54.8304379681555;-55.7654090080156;-56.6974441668168;-57.6262040618587;-58.5513520272923;-59.4725543748669;-60.3894806515210;-61.3018038935491;-62.2092008770867;-63.1113523646563;-64.0079433612411;-64.8986632972834;-65.7832062892002;-66.6612714226099;-67.5325629345074;-68.3967904310917;-69.2536691073946;-70.1029199358860;-70.9442698348226;-71.7774519152950;-72.6022056938410;-73.4182772388584;-74.2254193452346;-75.0233917020870;-75.8119610534586;-76.5909013518197;-77.3599939042393;-78.1190275110933;-78.8677985971915;-79.6061113860172;-80.3337778398682;-81.0506177568027;-81.7564591292457;-82.4511381955371;-83.1344994400313;-83.8063956685264;-84.4666880754759;-85.1152463029475;-85.7519484913009;-86.3766813215676;-86.9893400495253;-87.5898285314675;-88.1780592416803;-88.7539532816476;-89.3174403810143;-89.8684588903467;-90.4069557657412;-90.9328865453364;-91.4462153177989;-91.9469146828571;-92.4349657039695;-92.9103578697228;-93.3730889649870;-93.8231650333912;-94.2606003655903;-94.6854173648368;-95.0976464547196;-95.4973259798675;-95.8845021062020;-96.2592287131922;-96.6215671634256;-96.9715863365480;-97.3093623176758;-97.6349783017213;-97.9485246834538;-98.2500987525473;-98.5398045883514;-98.8177528473750;-99.0840605980189;-99.3388511505059;-99.5822538822269;-99.8144040587322;-100.035442650591;-100.245516146355;-100.444776361861;-100.633380246103;-100.811489683929;-100.979271295790;-101.136896234789;-101.284539981289;-101.422382135301;-101.550606250167;-101.669399464551;-101.778952354392;-101.879458771711;-101.971115556281;-102.054122499007;-102.128682094434;-102.194999205616;-102.253280882171;-102.303736187835;-102.346575947233;-102.382012531114;-102.410259642562;-102.431532104418;-102.446045665898;-102.454016722019;-102.455662141304;-102.451199131334;-102.440844982465;-102.424816918644;-102.403331693322;-102.376605710971;-102.344854230948;-102.308291297452;-102.267130369740;-102.221583725397;-102.171862303895;-102.118175460797;-102.060730771224;-101.999733864600;-101.935388263834;-101.867895229076;-101.797453606176;-101.724259679964;-101.648507032473;-101.570386406199;-101.490085572514;-101.407789205310;-101.323678759965;-101.237932357705;-101.150724675441;-101.062226841120;-100.972606334672;-100.882026894577;-100.790648440680;-100.698626980194;-100.606114430585;-100.513258655338;-100.420203528449;-100.327088593486;-100.234049077909;-100.141216032641;-100.048716219164;-99.9566721020795;-99.8652016664297;-99.7744184692686;-99.6844316595263;-99.5953459209917;-99.5072615178591;-99.4202742826716;-99.3344755035614;-99.2499519414543;-99.1667860148004;-99.0850557531052;-99.0048347838724;-98.9261923597394;-98.8491934779846;-98.7738985659968;-98.7003637099059;-98.6286410050437;-98.5587783821977;-98.4908195970188;-98.4248042130194;-98.3607678008764;-98.2987421067412;-98.2387550923427;-98.1808309255844;-98.1249900557081;-98.0712492918737;-98.0196218926448;-97.9701176127969;-97.9227428449623;-97.8775005937842;-97.8343906190833;-97.7934096806729;-97.7545515181579;-97.7178069480074;-97.6831639622454;-97.6506078285946;-97.6201211919080;-97.5916841767252;-97.5652744907879;-97.5408675293537;-97.5184364824084;-97.4979524317680;-97.4793844896905;-97.4626998177593;-97.4478636884261;-97.4348397347723;-97.4235901323139;-97.4140755122070;-97.4062550319647;-97.4000867068320;-97.3955274449651;-97.3925329386227;-97.3910578366853;-97.3910560985978;-97.3924809666941;-97.3952848772123;-97.3994197338881;-97.4048369907660;-97.4114876991777;-97.4193225707732;-97.4282921614988;-97.4383469516233;-97.4494373301348;-97.4615138223101;-97.4745271236788;-97.4884282547359;-97.5031681272782;-97.5186979202102;-97.5349694433814;-97.5519349295837;-97.5695473091143;-97.5877601639171;-97.6065277871492;-97.6258045931548;-97.6455454290646;-97.6657065462124;-97.6862451029523;-97.7071190979083;-97.7282876907175;-97.7497110187060;-97.7713502313280;-97.7931675217159;-97.8151261553570;-97.8371904959111;-97.8593260281951;-97.8814993783591;-97.9036783312855;-97.9258318452460;-97.9479300638584;-97.9699443253842;-97.9918471694140;-98.0136123409957;-98.0352147922554;-98.0566306815731;-98.0778373703729;-98.0988134175921;-98.1195385718990;-98.1399937617284;-98.1601610832088;-98.1800237860559;-98.1995662575144;-98.2187740044241;-98.2376336334952;-98.2561328298782;-98.2742603711013;-98.2920059781747;-98.3093602739486;-98.3263149267824;-98.3428626185018;-98.3589971613151;-98.3747126736998;-98.3900039774761;-98.4048671634032;-98.4192990777636;-98.4332974185883;-98.4468605918090;-98.4599878143599;-98.4726786730259;-98.4849332726121;-98.4967525705458;-98.5081380766345;-98.5190917626514;-98.5296160525358;-98.5397138397932;-98.5493884110600;-98.5586434101658;-98.5674828025586;-98.5759108401701;-98.5839320267987;-98.5915510840833;-98.5987729181372;-98.6056025869151;-98.6120452683737;-98.6181062294937;-98.6237907962209;-98.6291043382015;-98.6340521854179;-98.6386396544083;-98.6428720234619;-98.6467544128281;-98.6502916183185;-98.6534883777795;-98.6563493583600;-98.6588790238380;-98.6610818350848;-98.6629623744142;-98.6645238534197;-98.6657704129640;-98.6667047821955;-98.6673303130589;-98.6676500958252;-98.6676669508998;-98.6673834220995;-98.6668018061921;-98.6659240063224;-98.6647516161739;-98.6632860340909;-98.6615283699058;-98.6594794468586;-98.6573148320991;-98.6551554547783;-98.6529449315612;-98.6506812009524;-98.6483641572697;-98.6459926830603;-98.6435654705087;-98.6410822170746;-98.6385422147266;-98.6359444909795;-98.6332885517637;-98.6305735020979;-98.6277980641358;-98.6249614288171;-98.6220623023706;-98.6190987296793;-98.6160691901477;-98.6129723123925;-98.6098064192939;-98.6065698527669;-98.6032609979576;-98.5998784378360;-98.5964207001694;-98.5928865060748;-98.5892746455541;-98.5855832888708;-98.5818106831098;-98.5779551478671;-98.5740150805385;-98.5699889139630;-98.5658750560491;-98.5616718748111;-98.5573777296626;-98.5529910217600;-98.5485101390033;-98.5439335128306;-98.5392596146881;-98.5344869066807;-98.5296137914492;-98.5246386150496;-98.5195599134678;-98.5143762451258;-98.5090862662552;-98.5036884252228;-98.4981811599389;-98.4925630894522;-98.4868328248798;-98.4809889400882;-98.4750301515315;-98.4689551987106;-98.4627628673254;-98.4564518729551;-98.4500210232953;-98.4434691485337;-98.4367951011377;-98.4299977556110;-98.4230760930238;-98.4160288915065;-98.4088547824231;-98.4015526034713;-98.3941213361371;-98.3865599658273;-98.3788675011921;-98.3710430298446;-98.3630853923953;-98.3549934012629;-98.3467661402642;-98.3384027099565;-98.3299022272211;-98.3212638248520;-98.3124866511527;-98.3035698695423;-98.2945126581731;-98.2853142095617;-98.2759737302346;-98.2664904403933;-98.2568635735957;-98.2470923764586;-98.2371761083839;-98.2271140413066;-98.2169054594702;-98.2065496854695;-98.1960460365525;-98.1853936302485;-98.1745917141756;-98.1636394337884;-98.1525358190104;-98.1412801914695;-98.1298718880431;-98.1183102181757;-98.1065945008828;-98.0947242318849;-98.0826986608188;-98.0705187817134;-98.0581851616512;-98.0456963901018;-98.0330517954944;-98.0202510097807;-98.0072938786330;-97.9941804004811;-97.9809102802318;-97.9674829882966;-97.9538981687155;-97.9401554209160;-97.9262543554388;-97.9121947198342;-97.8979762973199;-97.8835988002185;-97.8690618507789;-97.8543653810111;-97.8395091517384;-97.8244926034763;-97.8093154784847;-97.7939774069545;-97.7784779446557;-97.7628167457497;-97.7469939581109;-97.7310095845825;-97.7148629405418;-97.6985538634904;-97.6820824248704;-97.6654486486336;-97.6486527896878;-97.6316948256093;-97.6145748247241;-97.5972930359670;-97.5798494571759;-97.5622442250842;-97.5444780720626;-97.5265515067330;-97.5084646124037;-97.4902176751892;-97.4718110221668;-97.4532450222418;-97.4345200870046;-97.4156366715846;-97.3965952754936;-97.3773964434603;-97.3580407662537;-97.3385288814934;-97.3188614744469;-97.2990392788089;-97.2790631946073;-97.2589338276973;-97.2386517293073;-97.2182177951969;-97.1976329325246;-97.1768977215278;-97.1560126435890;-97.1349787285004;-97.1137970367838;-97.0924685674935;-97.0709944734735;-97.0493760142894;-97.0276145661097;-97.0057116575164;-96.9836688185847;-96.9614865736127;-96.9391655749255;-96.9167074546644;-96.8941139123847;-96.8713866924131;-96.8485275847054;-96.8255384620606;-96.8024212526284;-96.7791779400447;-96.7558105962613;-96.7323213428162;-96.7087123293414;-96.6849857578851;-96.6611438971119;-96.6371891859423;-96.6131240857592;-96.5889508467687;-96.5646718013426;-96.5402892611798;-96.5158059563057;-96.4912246971756;-96.4665483375369;-96.4417798754884;-96.4169221294848;-96.3919776008942;-96.3669490769243;-96.3418395051341;-96.3166518833797;-96.2913892590311;-96.2660547281352;-96.2406514345238;-96.2151827017057;-96.1896520740915;-96.1640627562147;-96.1384178505745;-96.1127206173908;-96.0869744114870;-96.0611824951412;-96.0353480822221;-96.0094746882973;-95.9835658640720;-95.9576251938404;-95.9316562938827;-95.9056628108057;-95.8796484198275;-95.8536168230090;-95.8275717474292;-95.8015169433086;-95.7754561820773;-95.7493932543923;-95.7233320030468;-95.6972762961801;-95.6712299723781;-95.6451968706085;-95.6191808458433;-95.5931857593989;-95.5672154766097;-95.5412739438197;-95.5153649775547;-95.4894923110271;-95.4636598000018;-95.4378712918936;-95.4121306231964;-95.3864416168767;-95.3608080797359;-95.3352337997413;-95.3097225433291;-95.2842780526806;-95.2589040429748;-95.2336041996176;-95.2083821754522;-95.1832415879512;-95.1581860163940;-95.1332189990300;-95.1083440409444;-95.0835646508034;-95.0588840340927;-95.0343052894828;-95.0098316638131;-94.9854663476769;-94.9612125076958;-94.9370732461834;-94.9130515983138;-94.8891505293073;-94.8653729316338;-94.8417216308596;-94.8181994010279;-94.7948088320017;-94.7715522832579;-94.7484319189608;-94.7254499055855;-94.7026084548678;-94.6799097266954;-94.6573558755325;-94.6349485818802;-94.6126895468391;-94.5905802393024;-94.5686218630907;-94.5468159899923;-94.5251640793723;-94.5036674761275;-94.4823275625613;-94.4611451811493;-94.4401208409172;-94.4192552524165;-94.3985487883203;-94.3780017238011;-94.3576144128187;-94.3373871760795;-94.3173200136616;-94.2974128030670;-94.2776654289582;-94.2580773941683;-94.2386480887735;-94.2193770252671;-94.2002633994706;-94.1813062123456;-94.1625045904530;-94.1438575227571;-94.1253638606434;-94.1070223180712;-94.0888314718645;-94.0707897621389;-94.0528955945623;-94.0351469787564;-94.0175415783843;-94.0000771223805;-93.9827512543785;-93.9655616577162;-93.9485055771841;-93.9315800802080;-93.9147824003515;-93.8981091894430;-93.8815570680430;-93.8651228607757;-93.8488031875519;-93.8325946085061;-93.8164936264456;-93.8004966309014;-93.7845999008979;-93.7687996078524;-93.7530918186072;-93.7374724985845;-93.7219375150684;-93.7064826406042;-93.6911035565168;-93.6757958565413;-93.6605550505640;-93.6453765684683;-93.6302557640834;-93.6151879192302;-93.6001682478596;-93.5851919002814;-93.5702540239187;-93.5553495417202;-93.5404732780590;-93.5256201959666;-93.5107850796460;-93.4959626490257;-93.4811477188931;-93.4663350868215;-93.4515195275460;-93.4366957567939;-93.4218584910627;-93.4070024798015;-93.3921224554248;-93.3772133059796;-93.3622694635490;-93.3472851933173;-93.3322552093764;-93.3171742806638;-93.3020372732017;-93.2868389645513;-93.2715740530607;-93.2562373839112;-93.2408239175924;-93.2253286644941;-93.2097466896778;-93.1940731175987;-93.1783031367732;-93.1624320505681;-93.1464549754349;-93.1303669523268;-93.1141633549137;-93.0978397617211;-93.0813917826881;-93.0648147793528;-93.0481044216874;-93.0312563554828;-93.0142661371328;-92.9971299030256;-92.9798440871704;-92.9624045474724;-92.9448071014362;-92.9270483134855;-92.9091248445148;-92.8910334225120;-92.8727709589014;-92.8543347236364;-92.8357216478668;-92.8169286033790;-92.7979528219463;-92.7787921001749;-92.7594439343316;-92.7399062223667;-92.7201765554121;-92.7002525533044;-92.6801325705058;-92.6598149480807;-92.6392981808342;-92.6185811373550;-92.5976626236439;-92.5765416582016;-92.5552172002140;-92.5336884704901;-92.5119549993002;-92.4900161334258;-92.4678715777937;-92.4455213963944;-92.4229658055176;-92.4002051732908;-92.3772400190749;-92.3540710127158;-92.3306989736514;-92.3071248698777;-92.2833498167723;-92.2593750757760;-92.2352020529348;-92.2108322973026;-92.1862674992064;-92.1615094883750;-92.1365602319322;-92.1114218322581;-92.0860963954359;-92.0605861869120;-92.0348935539238;-92.0090208817272;-91.9829707237642;-91.9567455052291;-91.9303475612272;-91.9037796542055;-91.8770449820430;-91.8501468336690;-91.8230886035127;-91.7958737840771;-91.7685059623472;-91.7409888161146;-91.7133260571292;-91.6855214983214;-91.6575790851957;-91.6295028207669;-91.6012967792767;-91.5729649481474;-91.5445114298556;-91.5159398996288;-91.4872541541716;-91.4584584928860;-91.4295571588226;-91.4005546190347;-91.3714553292427;-91.3422637824532;-91.3129845303941;-91.2836221470616;-91.2541812242786;-91.2246663672493;-91.1950821901106;-91.1654333114871;-91.1357243500522;-91.1059599201004;-91.0761446271335;-91.0462830634652;-91.0163798038480;-90.9864394011259;-90.9564663819173;-90.9264652423303;-90.8964404437172;-90.8663964084672;-90.8363374842139;-90.8062678910981;-90.7761918604788;-90.7461136384205;-90.7160372248275;-90.6859665836398;-90.6559057404587;-90.6258585785882;-90.5958289697516;-90.5658205047172;-90.5358366851024;-90.5058811264869;-90.4759573456349;-90.4460688075108;-90.4162188679495;-90.3864106895443;-90.3566473298836;-90.3269318655476;-90.2972672753454;-90.2676563944685;-90.2381020209120;-90.2086065169667;-90.1791717182789;-90.1497996524006;-90.1204925042000;-90.0912523509359;-90.0620810572834;-90.0329802832687;-90.0039517113123;-89.9749968095573;-89.9461168421061;-89.9173131059123;-89.8885866437158;-89.8599383503084;-89.8313689700610;-89.8028789718172;-89.7744689590072;-89.7461391125276;-89.7178891682629;-89.6897191740669;-89.6616292923194;-89.6336190056219;-89.6056875973768;-89.5778347202122;-89.5500598864456;-89.5223624688655;-89.4947417016625;-89.4671966815029;-89.4397263687474;-89.4123295820460;-89.3850050066963;-89.3577511101004;-89.3305661780523;-89.3034484638502;-89.2763961554284;-89.2494071903678;-89.2224793483163;-89.1956104302534;-89.1687981250623;-89.1420397205533;-89.1153323976342;-89.0886732467748;-89.0620590499089;-89.0354866605142;-89.0089523019487;-88.9824520673803;-88.9559826168573;-88.9295405098459;-88.9031222585272;-88.8767244164501;-88.8503431614666;-88.8239745807842;-88.7976149632404;-88.7712604833786;-88.7449069681869;-88.7185502292203;-88.6921861905267;-88.6658107729820;-88.6394200205180;-88.6130098798958;-88.5865761030445;-88.5601138319342;-88.5336182824770;-88.5070852642456;-88.4805104681271;-88.4538895397021;-88.4272178806344;-88.4004908694942;-88.3737043566209;-88.3468539194157;-88.3199350522210;-88.2929435844232;-88.2658751681467;-88.2387254712370;-88.2114902368012;-88.1841652113941;-88.1567463414092;-88.1292293053543;-88.1016099029260;-88.0738841069566;-88.0460475549564;-88.0180959038602;-87.9900250679554;-87.9618312231810;-87.9335107896874;-87.9050600411771;-87.8764753065987;-87.8477530851653;-87.8188897597267;-87.7898821400075;-87.7607267823402;-87.7314202415530;-87.7019593583013;-87.6723408308526;-87.6425617682310;-87.6126195835915;-87.5825118527893;-87.5522362717717;-87.5217900806988;-87.4911708480861;-87.4603767272058;-87.4294058603719;-87.3982566289023;-87.3669275253792;-87.3354172231685;-87.3037242560244;-87.2718474166017;-87.2397860402532;-87.2075390550936;-87.1751053931252;-87.1424846128762;-87.1096764736887;-87.0766808834126;-87.0434979132368;-87.0101277989101;-86.9765709417975;-86.9428279097737;-86.9088994379445;-86.8747864292021;-86.8404899546049;-86.8060113202774;-86.7713518030514;-86.7365127724494;-86.7014960040395;-86.6663032853796;-86.6309365323303;-86.5953979597342;-86.5596897274033;-86.5238138327057;-86.4877727289805;-86.4515690263802;-86.4152053616533;-86.3786848938976;-86.3420109866888;-86.3051862796274;-86.2682147174395;-86.2310992259973;-86.1938440443727;-86.1564532580384;-86.1189310884561;-86.0812818899394;-86.0435101463682;-86.0056203637184;-85.9676172160911;-85.9295056037975;-85.8912904806407;-85.8529768326551;-85.8145697821089;-85.7760746149746;-85.7374967152687;-85.6988415605688;-85.6601147174142;-85.6213218365925;-85.5824686483186;-85.5435609573069;-85.5046046377447;-85.4656056281667;-85.4265699262386;-85.3875036535481;-85.3484127695785;-85.3093032869037;-85.2701812206220;-85.2310525605217;-85.1919234376943;-85.1527999624523;-85.1136882890773;-85.0745945708027;-85.0355250517579;-84.9964859996933;-84.9574836698790;-84.9185242979957;-84.8796141088714;-84.8407592995483;-84.8019660333200;-84.7632404337745;-84.7245885788455;-84.6860164948792;-84.6475301507216;-84.6091354518347;-84.5708382344430;-84.5326442597208;-84.4945591840509;-84.4565886093649;-84.4187380373633;-84.3810128128157;-84.3434181098379;-84.3059590020627;-84.2686406245079;-84.2314679363554;-84.1944457774340;-84.1575786578265;-84.1208709948117;-84.0843269685496;-84.0479505013053;-84.0117455412094;-83.9757160795351;-83.9398659300560;-83.9041987408013;-83.8687179294085;-83.8334268349172;-83.7983285977673;-83.7634261793914;-83.7287223587456;-83.6942197290056;-83.6599204585998;-83.6258264483481;-83.5919397325513;-83.5582621199908;-83.5247952158985;-83.4915404251389;-83.4584989260789;-83.4256714483141;-83.3930586387638;-83.3606611766366;-83.3284794452558;-83.2965136160879;-83.2647636479491;-83.2332292864216;-83.2019100634809;-83.1708052973342;-83.1399140924727;-83.1092353399341;-83.0787677177818;-83.0485096917937;-83.0184595163668;-82.9886152356327;-82.9589746847861;-82.9295354916238;-82.9002950782944;-82.8712505847850;-82.8423987920917;-82.8137364230529;-82.7852598556073;-82.7569652841826;-82.7288490030522;-82.7009070192276;-82.6731351254164;-82.6455289625665;-82.6180840467060;-82.5907953801979;-82.5636577107976;-82.5366658653526;-82.5098143687756;-82.4830977587954;-82.4565106509323;-82.4300474416482;-82.4037022825715;-82.3774690809249;-82.3513417464448;-82.3253141784846;-82.2993801137411;-82.2735331730825;-82.2477668483409;-82.2220745353862;-82.1964495515081;-82.1708850543993;-82.1453740938334;-82.1199095766939;-82.0944843416911;-82.0690913509421;-82.0437232464661;-82.0183724402254;-81.9930315169257;-81.9676931513227;-81.9423497479687;-81.9169937172436;-81.8916176908467;-81.8662142868241;-81.8407762134120;-81.8152961496441;-81.7897665384561;-81.7641799496106;-81.7385292383166;-81.7128072100243;-81.6870067148218;-81.6611206548120;-81.6351419914599;-81.6090637529018;-81.5828790412067;-81.5565810395848;-81.5301630195336;-81.5036183479136;-81.4769404939478;-81.4501230361350;-81.4231596690717;-81.3960442101748;-81.3687706062952;-81.3413329402194;-81.3137254370490;-81.2859424704523;-81.2579782185254;-81.2298271153770;-81.2014840103574;-81.1729436819349;-81.1442007699947;-81.1152502367699;-81.0860877116534;-81.0567088103671;-81.0271092895269;-80.9972852568346;-80.9672330557252;-80.9369492701279;-80.9064306554081;-80.8756738273847;-80.8446748085036;-80.8134305121007;-80.7819389293694;-80.7501980162323;-80.7182059144071;-80.6859610102139;-80.6534619554977;-80.6207076329058;-80.5876971672322;-80.5544299272895;-80.5209055275554;-80.4871238295921;-80.4530849432358;-80.4187892275558;-80.3842372915805;-80.3494298483640;-80.3143678658360;-80.2790525304393;-80.2434852802468;-80.2076680447965;-80.1716028027791;-80.1352919138642;-80.0987378773163;-80.0619432891850;-80.0249110562797;-79.9876445115199;-79.9501472687307;-79.9124231443807;-79.8744761895049;-79.8363106869937;-79.7979311486657;-79.7593423121250;-79.7205491374078;-79.6815565997844;-79.6423699447480;-79.6029947028528;-79.5634365995691;-79.5237014296109;-79.4837952330858;-79.4437245078810;-79.4034958509161;-79.3631160417333;-79.3225920372659;-79.2819309664467;-79.2411401246576;-79.2002269680286;-79.1591991075899;-79.1180643032844;-79.0768304578441;-79.0355056105391;-78.9940979308028;-78.9526157117414;-78.9110673635332;-78.8694614067241;-78.8278064654263;-78.7861112604263;-78.7443846022097;-78.7026353839094;-78.6608724595346;-78.6191047902289;-78.5773415132641;-78.5355917812378;-78.4938647930915;-78.4521697867522;-78.4105160317461;-78.3689128217957;-78.3273694674027;-78.2858952884293;-78.2444996066804;-78.2031917384968;-78.1619809873665;-78.1208766365593;-78.0798879417945;-78.0390241239472;-77.9982944447144;-77.9577078017663;-77.9172728912452;-77.8769984696965;-77.8368934761056;-77.7969666012887;-77.7572264165936;-77.7176815135616;-77.6783404863407;-77.6392117721324;-77.6003037351333;-77.5616246216510;-77.5231825282040;-77.4849852726277;-77.4470404256014;-77.4093554137343;-77.3719376807786;-77.3347946206501;-77.2979334549789;-77.2613612076207;-77.2250843979456;-77.1891095726142;-77.1534429505766;-77.1180906162393;-77.0830589456389;-77.0483539637743;-77.0139815008814;-76.9799471889558;-76.9462559985028;-76.9129127298130;-76.8799222847252;-76.8472890770454;-76.8150174943646;-76.7831118935496;-76.7515765385413;-76.7204153111470;-76.6896318446721;-76.6592296100679;-76.6292116116121;-76.5995809302945;-76.5703405354806;-76.5414928117637;-76.5130400094659;-76.4849844022100;-76.4573279551668;-76.4300723906989;-76.4032192068131;-76.3767696781040;-76.3507248569062;-76.3250855746452;-76.2998521393211;-76.2750246101122;-76.2506031013492;-76.2265875111921;-76.2029775729998;-76.1797724841716;-76.1569713472158;-76.1345732245260;-76.1125765359216;-76.0909798326700;-76.0697817140343;-76.0489804272547;-76.0285741292262;-76.0085608246703;-75.9889383178802;-75.9697042363940;-75.9508560352014;-75.9323910010691;-75.9143062569780;-75.8965987666657;-75.8792653392687;-75.8623026340560;-75.8457071652467;-75.8294753069082;-75.8136032979240;-75.7980872470257;-75.7829231378841;-75.7681068342491;-75.7536340851352;-75.7395005300419;-75.7257015354404;-75.7122324259190;-75.6990885741230;-75.6862650861814;-75.6737570464151;-75.6615595866631;-75.6496677222279;-75.6380763949404;-75.6267806291914;-75.6157752610287;-75.6050550747390;-75.5946148080235;-75.5844491571307;-75.5745523214809;-75.5649186249561;-75.5555427934791;-75.5464195112729;-75.5375433450899;-75.5289086975914;-75.5205099547900;-75.5123417985808;-75.5043989789775;-75.4966760913197;-75.4891677303668;-75.4818685132712;-75.4747730435850;-75.4678760160068;-75.4611720356674;-75.4546556214997;-75.4483214490808;-75.4421642613877;-75.4361786655538;-75.4303590716412;-75.4247002012461;-75.4191966357914;-75.4138430189998;-75.4086345244194;-75.4035661921872;-75.3986324652135;-75.3938281270473;-75.3891486260725;-75.3845892344156;-75.3801452723051;-75.3758122170574;-75.3715856535374;-75.3674607215699;-75.3634327209296;-75.3594973830707;-75.3556507127907;-75.3518883289872;-75.3482061382709;-75.3445996300410;-75.3410646185347;-75.3375975166463;-75.3341945017911;-75.3308519525289;-75.3275665063085;-75.3243346870134;-75.3211531370737;-75.3180185263078;-75.3149276878163;-75.3118774321458;-75.3088644646233;-75.3058858868218;-75.3029390310701;-75.3000212391540;-75.2971299369612;-75.2942626341620;-75.2914169238180;-75.2885904819243;-75.2857810668840;-75.2829865189209;-75.2802047594300;-75.2774337902690;-75.2746716929948;-75.2719166280445;-75.2691668338663;-75.2664206260012;-75.2636763961189;-75.2609326110083;-75.2581878115297;-75.2554405099374;-75.2526891995315;-75.2499323036298;-75.2471681082773;];
%128 samples:
x = 1:1e6;
psdnf = psdn(1:1300/128:end);
x128 = linspace(x(1), x(end), 128); %im trying to divide the data into 128 points only
%%%%%%%%%%%%%%%%%%%%
figure (1)
plot(x128, psdnf);
grid on
xlabel ('Frequency in Hz')
ylabel ('Power Spectral Density in dbm/kHz')
title ('Background Noise')
So that generates a plot of the PSD vs Frequency. But what I need is the amplitude of the PSD for each corresponding frequency, but I have no idea how I should do it. Thank you!

Accepted Answer

VBBV
VBBV on 28 Jan 2022
psdn = [-45.3953261464647;-46.3405836328469;-47.2863894168202;-48.2323917870060;-49.1782390282922;-50.1235796989143;-51.0680629071836;-52.0113385875735;-52.9530577758774;-53.8928728831512;-54.8304379681555;-55.7654090080156;-56.6974441668168;-57.6262040618587;-58.5513520272923;-59.4725543748669;-60.3894806515210;-61.3018038935491;-62.2092008770867;-63.1113523646563;-64.0079433612411;-64.8986632972834;-65.7832062892002;-66.6612714226099;-67.5325629345074;-68.3967904310917;-69.2536691073946;-70.1029199358860;-70.9442698348226;-71.7774519152950;-72.6022056938410;-73.4182772388584;-74.2254193452346;-75.0233917020870;-75.8119610534586;-76.5909013518197;-77.3599939042393;-78.1190275110933;-78.8677985971915;-79.6061113860172;-80.3337778398682;-81.0506177568027;-81.7564591292457;-82.4511381955371;-83.1344994400313;-83.8063956685264;-84.4666880754759;-85.1152463029475;-85.7519484913009;-86.3766813215676;-86.9893400495253;-87.5898285314675;-88.1780592416803;-88.7539532816476;-89.3174403810143;-89.8684588903467;-90.4069557657412;-90.9328865453364;-91.4462153177989;-91.9469146828571;-92.4349657039695;-92.9103578697228;-93.3730889649870;-93.8231650333912;-94.2606003655903;-94.6854173648368;-95.0976464547196;-95.4973259798675;-95.8845021062020;-96.2592287131922;-96.6215671634256;-96.9715863365480;-97.3093623176758;-97.6349783017213;-97.9485246834538;-98.2500987525473;-98.5398045883514;-98.8177528473750;-99.0840605980189;-99.3388511505059;-99.5822538822269;-99.8144040587322;-100.035442650591;-100.245516146355;-100.444776361861;-100.633380246103;-100.811489683929;-100.979271295790;-101.136896234789;-101.284539981289;-101.422382135301;-101.550606250167;-101.669399464551;-101.778952354392;-101.879458771711;-101.971115556281;-102.054122499007;-102.128682094434;-102.194999205616;-102.253280882171;-102.303736187835;-102.346575947233;-102.382012531114;-102.410259642562;-102.431532104418;-102.446045665898;-102.454016722019;-102.455662141304;-102.451199131334;-102.440844982465;-102.424816918644;-102.403331693322;-102.376605710971;-102.344854230948;-102.308291297452;-102.267130369740;-102.221583725397;-102.171862303895;-102.118175460797;-102.060730771224;-101.999733864600;-101.935388263834;-101.867895229076;-101.797453606176;-101.724259679964;-101.648507032473;-101.570386406199;-101.490085572514;-101.407789205310;-101.323678759965;-101.237932357705;-101.150724675441;-101.062226841120;-100.972606334672;-100.882026894577;-100.790648440680;-100.698626980194;-100.606114430585;-100.513258655338;-100.420203528449;-100.327088593486;-100.234049077909;-100.141216032641;-100.048716219164;-99.9566721020795;-99.8652016664297;-99.7744184692686;-99.6844316595263;-99.5953459209917;-99.5072615178591;-99.4202742826716;-99.3344755035614;-99.2499519414543;-99.1667860148004;-99.0850557531052;-99.0048347838724;-98.9261923597394;-98.8491934779846;-98.7738985659968;-98.7003637099059;-98.6286410050437;-98.5587783821977;-98.4908195970188;-98.4248042130194;-98.3607678008764;-98.2987421067412;-98.2387550923427;-98.1808309255844;-98.1249900557081;-98.0712492918737;-98.0196218926448;-97.9701176127969;-97.9227428449623;-97.8775005937842;-97.8343906190833;-97.7934096806729;-97.7545515181579;-97.7178069480074;-97.6831639622454;-97.6506078285946;-97.6201211919080;-97.5916841767252;-97.5652744907879;-97.5408675293537;-97.5184364824084;-97.4979524317680;-97.4793844896905;-97.4626998177593;-97.4478636884261;-97.4348397347723;-97.4235901323139;-97.4140755122070;-97.4062550319647;-97.4000867068320;-97.3955274449651;-97.3925329386227;-97.3910578366853;-97.3910560985978;-97.3924809666941;-97.3952848772123;-97.3994197338881;-97.4048369907660;-97.4114876991777;-97.4193225707732;-97.4282921614988;-97.4383469516233;-97.4494373301348;-97.4615138223101;-97.4745271236788;-97.4884282547359;-97.5031681272782;-97.5186979202102;-97.5349694433814;-97.5519349295837;-97.5695473091143;-97.5877601639171;-97.6065277871492;-97.6258045931548;-97.6455454290646;-97.6657065462124;-97.6862451029523;-97.7071190979083;-97.7282876907175;-97.7497110187060;-97.7713502313280;-97.7931675217159;-97.8151261553570;-97.8371904959111;-97.8593260281951;-97.8814993783591;-97.9036783312855;-97.9258318452460;-97.9479300638584;-97.9699443253842;-97.9918471694140;-98.0136123409957;-98.0352147922554;-98.0566306815731;-98.0778373703729;-98.0988134175921;-98.1195385718990;-98.1399937617284;-98.1601610832088;-98.1800237860559;-98.1995662575144;-98.2187740044241;-98.2376336334952;-98.2561328298782;-98.2742603711013;-98.2920059781747;-98.3093602739486;-98.3263149267824;-98.3428626185018;-98.3589971613151;-98.3747126736998;-98.3900039774761;-98.4048671634032;-98.4192990777636;-98.4332974185883;-98.4468605918090;-98.4599878143599;-98.4726786730259;-98.4849332726121;-98.4967525705458;-98.5081380766345;-98.5190917626514;-98.5296160525358;-98.5397138397932;-98.5493884110600;-98.5586434101658;-98.5674828025586;-98.5759108401701;-98.5839320267987;-98.5915510840833;-98.5987729181372;-98.6056025869151;-98.6120452683737;-98.6181062294937;-98.6237907962209;-98.6291043382015;-98.6340521854179;-98.6386396544083;-98.6428720234619;-98.6467544128281;-98.6502916183185;-98.6534883777795;-98.6563493583600;-98.6588790238380;-98.6610818350848;-98.6629623744142;-98.6645238534197;-98.6657704129640;-98.6667047821955;-98.6673303130589;-98.6676500958252;-98.6676669508998;-98.6673834220995;-98.6668018061921;-98.6659240063224;-98.6647516161739;-98.6632860340909;-98.6615283699058;-98.6594794468586;-98.6573148320991;-98.6551554547783;-98.6529449315612;-98.6506812009524;-98.6483641572697;-98.6459926830603;-98.6435654705087;-98.6410822170746;-98.6385422147266;-98.6359444909795;-98.6332885517637;-98.6305735020979;-98.6277980641358;-98.6249614288171;-98.6220623023706;-98.6190987296793;-98.6160691901477;-98.6129723123925;-98.6098064192939;-98.6065698527669;-98.6032609979576;-98.5998784378360;-98.5964207001694;-98.5928865060748;-98.5892746455541;-98.5855832888708;-98.5818106831098;-98.5779551478671;-98.5740150805385;-98.5699889139630;-98.5658750560491;-98.5616718748111;-98.5573777296626;-98.5529910217600;-98.5485101390033;-98.5439335128306;-98.5392596146881;-98.5344869066807;-98.5296137914492;-98.5246386150496;-98.5195599134678;-98.5143762451258;-98.5090862662552;-98.5036884252228;-98.4981811599389;-98.4925630894522;-98.4868328248798;-98.4809889400882;-98.4750301515315;-98.4689551987106;-98.4627628673254;-98.4564518729551;-98.4500210232953;-98.4434691485337;-98.4367951011377;-98.4299977556110;-98.4230760930238;-98.4160288915065;-98.4088547824231;-98.4015526034713;-98.3941213361371;-98.3865599658273;-98.3788675011921;-98.3710430298446;-98.3630853923953;-98.3549934012629;-98.3467661402642;-98.3384027099565;-98.3299022272211;-98.3212638248520;-98.3124866511527;-98.3035698695423;-98.2945126581731;-98.2853142095617;-98.2759737302346;-98.2664904403933;-98.2568635735957;-98.2470923764586;-98.2371761083839;-98.2271140413066;-98.2169054594702;-98.2065496854695;-98.1960460365525;-98.1853936302485;-98.1745917141756;-98.1636394337884;-98.1525358190104;-98.1412801914695;-98.1298718880431;-98.1183102181757;-98.1065945008828;-98.0947242318849;-98.0826986608188;-98.0705187817134;-98.0581851616512;-98.0456963901018;-98.0330517954944;-98.0202510097807;-98.0072938786330;-97.9941804004811;-97.9809102802318;-97.9674829882966;-97.9538981687155;-97.9401554209160;-97.9262543554388;-97.9121947198342;-97.8979762973199;-97.8835988002185;-97.8690618507789;-97.8543653810111;-97.8395091517384;-97.8244926034763;-97.8093154784847;-97.7939774069545;-97.7784779446557;-97.7628167457497;-97.7469939581109;-97.7310095845825;-97.7148629405418;-97.6985538634904;-97.6820824248704;-97.6654486486336;-97.6486527896878;-97.6316948256093;-97.6145748247241;-97.5972930359670;-97.5798494571759;-97.5622442250842;-97.5444780720626;-97.5265515067330;-97.5084646124037;-97.4902176751892;-97.4718110221668;-97.4532450222418;-97.4345200870046;-97.4156366715846;-97.3965952754936;-97.3773964434603;-97.3580407662537;-97.3385288814934;-97.3188614744469;-97.2990392788089;-97.2790631946073;-97.2589338276973;-97.2386517293073;-97.2182177951969;-97.1976329325246;-97.1768977215278;-97.1560126435890;-97.1349787285004;-97.1137970367838;-97.0924685674935;-97.0709944734735;-97.0493760142894;-97.0276145661097;-97.0057116575164;-96.9836688185847;-96.9614865736127;-96.9391655749255;-96.9167074546644;-96.8941139123847;-96.8713866924131;-96.8485275847054;-96.8255384620606;-96.8024212526284;-96.7791779400447;-96.7558105962613;-96.7323213428162;-96.7087123293414;-96.6849857578851;-96.6611438971119;-96.6371891859423;-96.6131240857592;-96.5889508467687;-96.5646718013426;-96.5402892611798;-96.5158059563057;-96.4912246971756;-96.4665483375369;-96.4417798754884;-96.4169221294848;-96.3919776008942;-96.3669490769243;-96.3418395051341;-96.3166518833797;-96.2913892590311;-96.2660547281352;-96.2406514345238;-96.2151827017057;-96.1896520740915;-96.1640627562147;-96.1384178505745;-96.1127206173908;-96.0869744114870;-96.0611824951412;-96.0353480822221;-96.0094746882973;-95.9835658640720;-95.9576251938404;-95.9316562938827;-95.9056628108057;-95.8796484198275;-95.8536168230090;-95.8275717474292;-95.8015169433086;-95.7754561820773;-95.7493932543923;-95.7233320030468;-95.6972762961801;-95.6712299723781;-95.6451968706085;-95.6191808458433;-95.5931857593989;-95.5672154766097;-95.5412739438197;-95.5153649775547;-95.4894923110271;-95.4636598000018;-95.4378712918936;-95.4121306231964;-95.3864416168767;-95.3608080797359;-95.3352337997413;-95.3097225433291;-95.2842780526806;-95.2589040429748;-95.2336041996176;-95.2083821754522;-95.1832415879512;-95.1581860163940;-95.1332189990300;-95.1083440409444;-95.0835646508034;-95.0588840340927;-95.0343052894828;-95.0098316638131;-94.9854663476769;-94.9612125076958;-94.9370732461834;-94.9130515983138;-94.8891505293073;-94.8653729316338;-94.8417216308596;-94.8181994010279;-94.7948088320017;-94.7715522832579;-94.7484319189608;-94.7254499055855;-94.7026084548678;-94.6799097266954;-94.6573558755325;-94.6349485818802;-94.6126895468391;-94.5905802393024;-94.5686218630907;-94.5468159899923;-94.5251640793723;-94.5036674761275;-94.4823275625613;-94.4611451811493;-94.4401208409172;-94.4192552524165;-94.3985487883203;-94.3780017238011;-94.3576144128187;-94.3373871760795;-94.3173200136616;-94.2974128030670;-94.2776654289582;-94.2580773941683;-94.2386480887735;-94.2193770252671;-94.2002633994706;-94.1813062123456;-94.1625045904530;-94.1438575227571;-94.1253638606434;-94.1070223180712;-94.0888314718645;-94.0707897621389;-94.0528955945623;-94.0351469787564;-94.0175415783843;-94.0000771223805;-93.9827512543785;-93.9655616577162;-93.9485055771841;-93.9315800802080;-93.9147824003515;-93.8981091894430;-93.8815570680430;-93.8651228607757;-93.8488031875519;-93.8325946085061;-93.8164936264456;-93.8004966309014;-93.7845999008979;-93.7687996078524;-93.7530918186072;-93.7374724985845;-93.7219375150684;-93.7064826406042;-93.6911035565168;-93.6757958565413;-93.6605550505640;-93.6453765684683;-93.6302557640834;-93.6151879192302;-93.6001682478596;-93.5851919002814;-93.5702540239187;-93.5553495417202;-93.5404732780590;-93.5256201959666;-93.5107850796460;-93.4959626490257;-93.4811477188931;-93.4663350868215;-93.4515195275460;-93.4366957567939;-93.4218584910627;-93.4070024798015;-93.3921224554248;-93.3772133059796;-93.3622694635490;-93.3472851933173;-93.3322552093764;-93.3171742806638;-93.3020372732017;-93.2868389645513;-93.2715740530607;-93.2562373839112;-93.2408239175924;-93.2253286644941;-93.2097466896778;-93.1940731175987;-93.1783031367732;-93.1624320505681;-93.1464549754349;-93.1303669523268;-93.1141633549137;-93.0978397617211;-93.0813917826881;-93.0648147793528;-93.0481044216874;-93.0312563554828;-93.0142661371328;-92.9971299030256;-92.9798440871704;-92.9624045474724;-92.9448071014362;-92.9270483134855;-92.9091248445148;-92.8910334225120;-92.8727709589014;-92.8543347236364;-92.8357216478668;-92.8169286033790;-92.7979528219463;-92.7787921001749;-92.7594439343316;-92.7399062223667;-92.7201765554121;-92.7002525533044;-92.6801325705058;-92.6598149480807;-92.6392981808342;-92.6185811373550;-92.5976626236439;-92.5765416582016;-92.5552172002140;-92.5336884704901;-92.5119549993002;-92.4900161334258;-92.4678715777937;-92.4455213963944;-92.4229658055176;-92.4002051732908;-92.3772400190749;-92.3540710127158;-92.3306989736514;-92.3071248698777;-92.2833498167723;-92.2593750757760;-92.2352020529348;-92.2108322973026;-92.1862674992064;-92.1615094883750;-92.1365602319322;-92.1114218322581;-92.0860963954359;-92.0605861869120;-92.0348935539238;-92.0090208817272;-91.9829707237642;-91.9567455052291;-91.9303475612272;-91.9037796542055;-91.8770449820430;-91.8501468336690;-91.8230886035127;-91.7958737840771;-91.7685059623472;-91.7409888161146;-91.7133260571292;-91.6855214983214;-91.6575790851957;-91.6295028207669;-91.6012967792767;-91.5729649481474;-91.5445114298556;-91.5159398996288;-91.4872541541716;-91.4584584928860;-91.4295571588226;-91.4005546190347;-91.3714553292427;-91.3422637824532;-91.3129845303941;-91.2836221470616;-91.2541812242786;-91.2246663672493;-91.1950821901106;-91.1654333114871;-91.1357243500522;-91.1059599201004;-91.0761446271335;-91.0462830634652;-91.0163798038480;-90.9864394011259;-90.9564663819173;-90.9264652423303;-90.8964404437172;-90.8663964084672;-90.8363374842139;-90.8062678910981;-90.7761918604788;-90.7461136384205;-90.7160372248275;-90.6859665836398;-90.6559057404587;-90.6258585785882;-90.5958289697516;-90.5658205047172;-90.5358366851024;-90.5058811264869;-90.4759573456349;-90.4460688075108;-90.4162188679495;-90.3864106895443;-90.3566473298836;-90.3269318655476;-90.2972672753454;-90.2676563944685;-90.2381020209120;-90.2086065169667;-90.1791717182789;-90.1497996524006;-90.1204925042000;-90.0912523509359;-90.0620810572834;-90.0329802832687;-90.0039517113123;-89.9749968095573;-89.9461168421061;-89.9173131059123;-89.8885866437158;-89.8599383503084;-89.8313689700610;-89.8028789718172;-89.7744689590072;-89.7461391125276;-89.7178891682629;-89.6897191740669;-89.6616292923194;-89.6336190056219;-89.6056875973768;-89.5778347202122;-89.5500598864456;-89.5223624688655;-89.4947417016625;-89.4671966815029;-89.4397263687474;-89.4123295820460;-89.3850050066963;-89.3577511101004;-89.3305661780523;-89.3034484638502;-89.2763961554284;-89.2494071903678;-89.2224793483163;-89.1956104302534;-89.1687981250623;-89.1420397205533;-89.1153323976342;-89.0886732467748;-89.0620590499089;-89.0354866605142;-89.0089523019487;-88.9824520673803;-88.9559826168573;-88.9295405098459;-88.9031222585272;-88.8767244164501;-88.8503431614666;-88.8239745807842;-88.7976149632404;-88.7712604833786;-88.7449069681869;-88.7185502292203;-88.6921861905267;-88.6658107729820;-88.6394200205180;-88.6130098798958;-88.5865761030445;-88.5601138319342;-88.5336182824770;-88.5070852642456;-88.4805104681271;-88.4538895397021;-88.4272178806344;-88.4004908694942;-88.3737043566209;-88.3468539194157;-88.3199350522210;-88.2929435844232;-88.2658751681467;-88.2387254712370;-88.2114902368012;-88.1841652113941;-88.1567463414092;-88.1292293053543;-88.1016099029260;-88.0738841069566;-88.0460475549564;-88.0180959038602;-87.9900250679554;-87.9618312231810;-87.9335107896874;-87.9050600411771;-87.8764753065987;-87.8477530851653;-87.8188897597267;-87.7898821400075;-87.7607267823402;-87.7314202415530;-87.7019593583013;-87.6723408308526;-87.6425617682310;-87.6126195835915;-87.5825118527893;-87.5522362717717;-87.5217900806988;-87.4911708480861;-87.4603767272058;-87.4294058603719;-87.3982566289023;-87.3669275253792;-87.3354172231685;-87.3037242560244;-87.2718474166017;-87.2397860402532;-87.2075390550936;-87.1751053931252;-87.1424846128762;-87.1096764736887;-87.0766808834126;-87.0434979132368;-87.0101277989101;-86.9765709417975;-86.9428279097737;-86.9088994379445;-86.8747864292021;-86.8404899546049;-86.8060113202774;-86.7713518030514;-86.7365127724494;-86.7014960040395;-86.6663032853796;-86.6309365323303;-86.5953979597342;-86.5596897274033;-86.5238138327057;-86.4877727289805;-86.4515690263802;-86.4152053616533;-86.3786848938976;-86.3420109866888;-86.3051862796274;-86.2682147174395;-86.2310992259973;-86.1938440443727;-86.1564532580384;-86.1189310884561;-86.0812818899394;-86.0435101463682;-86.0056203637184;-85.9676172160911;-85.9295056037975;-85.8912904806407;-85.8529768326551;-85.8145697821089;-85.7760746149746;-85.7374967152687;-85.6988415605688;-85.6601147174142;-85.6213218365925;-85.5824686483186;-85.5435609573069;-85.5046046377447;-85.4656056281667;-85.4265699262386;-85.3875036535481;-85.3484127695785;-85.3093032869037;-85.2701812206220;-85.2310525605217;-85.1919234376943;-85.1527999624523;-85.1136882890773;-85.0745945708027;-85.0355250517579;-84.9964859996933;-84.9574836698790;-84.9185242979957;-84.8796141088714;-84.8407592995483;-84.8019660333200;-84.7632404337745;-84.7245885788455;-84.6860164948792;-84.6475301507216;-84.6091354518347;-84.5708382344430;-84.5326442597208;-84.4945591840509;-84.4565886093649;-84.4187380373633;-84.3810128128157;-84.3434181098379;-84.3059590020627;-84.2686406245079;-84.2314679363554;-84.1944457774340;-84.1575786578265;-84.1208709948117;-84.0843269685496;-84.0479505013053;-84.0117455412094;-83.9757160795351;-83.9398659300560;-83.9041987408013;-83.8687179294085;-83.8334268349172;-83.7983285977673;-83.7634261793914;-83.7287223587456;-83.6942197290056;-83.6599204585998;-83.6258264483481;-83.5919397325513;-83.5582621199908;-83.5247952158985;-83.4915404251389;-83.4584989260789;-83.4256714483141;-83.3930586387638;-83.3606611766366;-83.3284794452558;-83.2965136160879;-83.2647636479491;-83.2332292864216;-83.2019100634809;-83.1708052973342;-83.1399140924727;-83.1092353399341;-83.0787677177818;-83.0485096917937;-83.0184595163668;-82.9886152356327;-82.9589746847861;-82.9295354916238;-82.9002950782944;-82.8712505847850;-82.8423987920917;-82.8137364230529;-82.7852598556073;-82.7569652841826;-82.7288490030522;-82.7009070192276;-82.6731351254164;-82.6455289625665;-82.6180840467060;-82.5907953801979;-82.5636577107976;-82.5366658653526;-82.5098143687756;-82.4830977587954;-82.4565106509323;-82.4300474416482;-82.4037022825715;-82.3774690809249;-82.3513417464448;-82.3253141784846;-82.2993801137411;-82.2735331730825;-82.2477668483409;-82.2220745353862;-82.1964495515081;-82.1708850543993;-82.1453740938334;-82.1199095766939;-82.0944843416911;-82.0690913509421;-82.0437232464661;-82.0183724402254;-81.9930315169257;-81.9676931513227;-81.9423497479687;-81.9169937172436;-81.8916176908467;-81.8662142868241;-81.8407762134120;-81.8152961496441;-81.7897665384561;-81.7641799496106;-81.7385292383166;-81.7128072100243;-81.6870067148218;-81.6611206548120;-81.6351419914599;-81.6090637529018;-81.5828790412067;-81.5565810395848;-81.5301630195336;-81.5036183479136;-81.4769404939478;-81.4501230361350;-81.4231596690717;-81.3960442101748;-81.3687706062952;-81.3413329402194;-81.3137254370490;-81.2859424704523;-81.2579782185254;-81.2298271153770;-81.2014840103574;-81.1729436819349;-81.1442007699947;-81.1152502367699;-81.0860877116534;-81.0567088103671;-81.0271092895269;-80.9972852568346;-80.9672330557252;-80.9369492701279;-80.9064306554081;-80.8756738273847;-80.8446748085036;-80.8134305121007;-80.7819389293694;-80.7501980162323;-80.7182059144071;-80.6859610102139;-80.6534619554977;-80.6207076329058;-80.5876971672322;-80.5544299272895;-80.5209055275554;-80.4871238295921;-80.4530849432358;-80.4187892275558;-80.3842372915805;-80.3494298483640;-80.3143678658360;-80.2790525304393;-80.2434852802468;-80.2076680447965;-80.1716028027791;-80.1352919138642;-80.0987378773163;-80.0619432891850;-80.0249110562797;-79.9876445115199;-79.9501472687307;-79.9124231443807;-79.8744761895049;-79.8363106869937;-79.7979311486657;-79.7593423121250;-79.7205491374078;-79.6815565997844;-79.6423699447480;-79.6029947028528;-79.5634365995691;-79.5237014296109;-79.4837952330858;-79.4437245078810;-79.4034958509161;-79.3631160417333;-79.3225920372659;-79.2819309664467;-79.2411401246576;-79.2002269680286;-79.1591991075899;-79.1180643032844;-79.0768304578441;-79.0355056105391;-78.9940979308028;-78.9526157117414;-78.9110673635332;-78.8694614067241;-78.8278064654263;-78.7861112604263;-78.7443846022097;-78.7026353839094;-78.6608724595346;-78.6191047902289;-78.5773415132641;-78.5355917812378;-78.4938647930915;-78.4521697867522;-78.4105160317461;-78.3689128217957;-78.3273694674027;-78.2858952884293;-78.2444996066804;-78.2031917384968;-78.1619809873665;-78.1208766365593;-78.0798879417945;-78.0390241239472;-77.9982944447144;-77.9577078017663;-77.9172728912452;-77.8769984696965;-77.8368934761056;-77.7969666012887;-77.7572264165936;-77.7176815135616;-77.6783404863407;-77.6392117721324;-77.6003037351333;-77.5616246216510;-77.5231825282040;-77.4849852726277;-77.4470404256014;-77.4093554137343;-77.3719376807786;-77.3347946206501;-77.2979334549789;-77.2613612076207;-77.2250843979456;-77.1891095726142;-77.1534429505766;-77.1180906162393;-77.0830589456389;-77.0483539637743;-77.0139815008814;-76.9799471889558;-76.9462559985028;-76.9129127298130;-76.8799222847252;-76.8472890770454;-76.8150174943646;-76.7831118935496;-76.7515765385413;-76.7204153111470;-76.6896318446721;-76.6592296100679;-76.6292116116121;-76.5995809302945;-76.5703405354806;-76.5414928117637;-76.5130400094659;-76.4849844022100;-76.4573279551668;-76.4300723906989;-76.4032192068131;-76.3767696781040;-76.3507248569062;-76.3250855746452;-76.2998521393211;-76.2750246101122;-76.2506031013492;-76.2265875111921;-76.2029775729998;-76.1797724841716;-76.1569713472158;-76.1345732245260;-76.1125765359216;-76.0909798326700;-76.0697817140343;-76.0489804272547;-76.0285741292262;-76.0085608246703;-75.9889383178802;-75.9697042363940;-75.9508560352014;-75.9323910010691;-75.9143062569780;-75.8965987666657;-75.8792653392687;-75.8623026340560;-75.8457071652467;-75.8294753069082;-75.8136032979240;-75.7980872470257;-75.7829231378841;-75.7681068342491;-75.7536340851352;-75.7395005300419;-75.7257015354404;-75.7122324259190;-75.6990885741230;-75.6862650861814;-75.6737570464151;-75.6615595866631;-75.6496677222279;-75.6380763949404;-75.6267806291914;-75.6157752610287;-75.6050550747390;-75.5946148080235;-75.5844491571307;-75.5745523214809;-75.5649186249561;-75.5555427934791;-75.5464195112729;-75.5375433450899;-75.5289086975914;-75.5205099547900;-75.5123417985808;-75.5043989789775;-75.4966760913197;-75.4891677303668;-75.4818685132712;-75.4747730435850;-75.4678760160068;-75.4611720356674;-75.4546556214997;-75.4483214490808;-75.4421642613877;-75.4361786655538;-75.4303590716412;-75.4247002012461;-75.4191966357914;-75.4138430189998;-75.4086345244194;-75.4035661921872;-75.3986324652135;-75.3938281270473;-75.3891486260725;-75.3845892344156;-75.3801452723051;-75.3758122170574;-75.3715856535374;-75.3674607215699;-75.3634327209296;-75.3594973830707;-75.3556507127907;-75.3518883289872;-75.3482061382709;-75.3445996300410;-75.3410646185347;-75.3375975166463;-75.3341945017911;-75.3308519525289;-75.3275665063085;-75.3243346870134;-75.3211531370737;-75.3180185263078;-75.3149276878163;-75.3118774321458;-75.3088644646233;-75.3058858868218;-75.3029390310701;-75.3000212391540;-75.2971299369612;-75.2942626341620;-75.2914169238180;-75.2885904819243;-75.2857810668840;-75.2829865189209;-75.2802047594300;-75.2774337902690;-75.2746716929948;-75.2719166280445;-75.2691668338663;-75.2664206260012;-75.2636763961189;-75.2609326110083;-75.2581878115297;-75.2554405099374;-75.2526891995315;-75.2499323036298;-75.2471681082773;];
%128 samples:
x = 1:1e6;
Fs = length(psdn)/128;
psdnf = psdn(1:length(psdn)/128:end);
Warning: Integer operands are required for colon operator when used as index.
x128 = linspace(x(1), x(end), 128); %im trying to divide the data into 128 points only
% Pxx = abs(fft(psdn)).^2/length(psdn)/Fs;
figure (1)
plot(x128,psdnf);
grid on
xlabel ('Frequency in Hz')
ylabel ('Power Spectral Density in dbm/kHz')
title ('Background Noise')
figure(2)
periodogram(psdn)

More Answers (0)

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!