How to display specific values in xticks?

3 visualizzazioni (ultimi 30 giorni)
H there,
I have this code and I need to show those values in x axss:
xticks([0,1000,2000,3000]);
but it's not working.
clear all;clc;close all;
figure;
clf('reset');
%data1=[0.0982000000000000 0.100000000000000 0.100000000000000 0.100000000000000 0.100000000000000 0.100000000000000 0.174000000000000 0.127800000000000 0.100000000000000 0.144900000000000 0.158600000000000 0.195200000000000 0.213900000000000 0.207500000000000 0.246700000000000 0.235000000000000 0.255800000000000 0.252800000000000 0.278400000000000 0.257300000000000 0.295500000000000 0.290100000000000 0.287900000000000 0.312000000000000 0.295100000000000 0.313900000000000 0.292500000000000 0.348100000000000 0.306600000000000 0.298100000000000 0.327400000000000 0.300700000000000 0.346400000000000 0.325200000000000 0.341600000000000 0.348100000000000 0.359200000000000 0.373800000000000 0.384600000000000 0.370000000000000 0.382400000000000 0.368800000000000 0.360500000000000 0.388800000000000 0.389300000000000 0.335500000000000 0.407400000000000 0.404400000000000 0.397400000000000 0.386000000000000 0.447200000000000 0.418900000000000 0.324700000000000 0.436000000000000 0.435500000000000 0.418100000000000 0.448400000000000 0.405600000000000 0.435200000000000 0.434600000000000 0.434900000000000 0.398800000000000 0.447900000000000 0.458400000000000 0.458800000000000 0.454400000000000 0.462400000000000 0.439400000000000 0.432400000000000 0.455300000000000 0.460100000000000 0.472600000000000 0.457400000000000 0.455700000000000 0.461200000000000 0.486400000000000 0.471800000000000 0.488500000000000 0.491500000000000 0.482000000000000 0.479200000000000 0.458600000000000 0.493600000000000 0.476600000000000 0.484700000000000 0.486300000000000 0.490500000000000 0.399800000000000 0.501100000000000 0.488300000000000 0.472400000000000 0.499400000000000 0.495600000000000 0.467100000000000 0.504600000000000 0.492400000000000 0.494000000000000 0.433300000000000 0.499100000000000 0.499300000000000 0.481100000000000 0.0962800000000000 0.100000000000000 0.100000000000000 0.100000000000000 0.100000000000000 0.100000000000000 0.178020000000000 0.129220000000000 0.100000000000000 0.145080000000000 0.158540000000000 0.203520000000000 0.226780000000000 0.213420000000000 0.246580000000000 0.235160000000000 0.262320000000000 0.258500000000000 0.282380000000000 0.265120000000000 0.299300000000000 0.295060000000000 0.288720000000000 0.318620000000000 0.304620000000000 0.321160000000000 0.300700000000000 0.357960000000000 0.306220000000000 0.296940000000000 0.337880000000000 0.308640000000000 0.353780000000000 0.331020000000000 0.352280000000000 0.360340000000000 0.367480000000000 0.382960000000000 0.394520000000000 0.385080000000000 0.390920000000000 0.369860000000000 0.365660000000000 0.394340000000000 0.394680000000000 0.342240000000000 0.414180000000000 0.411140000000000 0.401880000000000 0.397340000000000 0.456940000000000 0.431660000000000 0.336400000000000 0.445420000000000 0.445800000000000 0.432920000000000 0.461380000000000 0.415140000000000 0.447960000000000 0.445680000000000 0.439380000000000 0.414860000000000 0.459920000000000 0.468900000000000 0.468640000000000 0.466880000000000 0.476620000000000 0.456820000000000 0.446220000000000 0.469240000000000 0.472260000000000 0.487820000000000 0.474420000000000 0.467380000000000 0.482840000000000 0.503760000000000 0.490400000000000 0.514060000000000 0.512720000000000 0.498780000000000 0.507220000000000 0.481580000000000 0.515980000000000 0.502000000000000 0.498780000000000 0.500860000000000 0.508940000000000 0.415240000000000 0.524660000000000 0.519320000000000 0.495620000000000 0.522680000000000 0.514840000000000 0.491660000000000 0.529340000000000 0.516280000000000 0.521240000000000 0.455820000000000 0.520040000000000 0.521040000000000 0.513500000000000 2.30403345706940 2.30620311184883 2.31039898137093 2.30411348122120 2.88908658975005 2.30320027412891 2.27055480508804 2.27185462116718 2.31468903849602 2.24158897457123 2.23321191825390 2.16947996738434 2.13743612764120 2.14469002091885 2.07382115344763 2.07303473911762 2.01240907649756 2.02058536282063 1.99229453734398 2.00099799292564 1.91771962085485 1.95623415379047 1.90886361872435 1.84007756650448 1.85846258950472 1.81173686036110 1.87069405502558 1.70720694911957 1.78694309985399 1.88076963901043 1.79198827629328 1.79304376233339 1.74543715986967 1.74728340050697 1.74368234551430 1.71251833550692 1.71174252554894 1.64624100121021 1.65337168209076 1.65349390598536 1.61115312357187 1.66563556685209 1.74209241328239 1.61529556299090 1.57481566437483 1.86816865405440 1.57661045122385 1.60405130853891 1.58453108724833 1.60875749540806 1.48079197016239 1.54164715612173 1.98133160567760 1.50394958159924 1.49708260222912 1.52389105909824 1.47462346817970 1.54393280265570 1.50437390958548 1.50237421104431 1.51986185230732 1.56954605160475 1.45782959187269 1.45864826339722 1.44693543951273 1.43590127870560 1.45094174188614 1.48082629955053 1.53049241093159 1.46549421633720 1.44010556263685 1.40471962616920 1.46320253729939 1.44471210299730 1.47889499145389 1.36336112412572 1.39870475776315 1.34833795078754 1.35553333128452 1.40868777657509 1.36306389833331 1.43852580796480 1.34466211567402 1.36305228626609 1.39321074314117 1.41037521979928 1.39247402633429 1.64792346858263 1.33386126009941 1.33614172063828 1.42207676080108 1.35024720188260 1.37456270253301 1.42990424763918 1.30571148571849 1.34804963823318 1.38008130750895 1.49137777404904 1.37857525081038 1.35224813779116 1.40299109038830];
data1=[0.0982000000000000 0.100000000000000 0.100000000000000 0.100000000000000 0.100000000000000 0.100000000000000 0.174000000000000 0.127800000000000 0.100000000000000 0.144900000000000 0.158600000000000 0.195200000000000 0.213900000000000 0.207500000000000 0.246700000000000 0.235000000000000 0.255800000000000 0.252800000000000 0.278400000000000 0.257300000000000 0.295500000000000 0.290100000000000 0.287900000000000 0.312000000000000 0.295100000000000 0.313900000000000 0.292500000000000 0.348100000000000 0.306600000000000 0.298100000000000 0.327400000000000 0.300700000000000 0.346400000000000 0.325200000000000 0.341600000000000 0.348100000000000 0.359200000000000 0.373800000000000 0.384600000000000 0.370000000000000 0.382400000000000 0.368800000000000 0.360500000000000 0.388800000000000 0.389300000000000 0.335500000000000 0.407400000000000 0.404400000000000 0.397400000000000 0.386000000000000 0.447200000000000 0.418900000000000 0.324700000000000 0.436000000000000 0.435500000000000 0.418100000000000 0.448400000000000 0.405600000000000 0.435200000000000 0.434600000000000 0.434900000000000 0.398800000000000 0.447900000000000 0.458400000000000 0.458800000000000 0.454400000000000 0.462400000000000 0.439400000000000 0.432400000000000 0.455300000000000 0.460100000000000 0.472600000000000 0.457400000000000 0.455700000000000 0.461200000000000 0.486400000000000 0.471800000000000 0.488500000000000 0.491500000000000 0.482000000000000 0.479200000000000 0.458600000000000 0.493600000000000 0.476600000000000 0.484700000000000 0.486300000000000 0.490500000000000 0.399800000000000 0.501100000000000 0.488300000000000 0.472400000000000 0.499400000000000 0.495600000000000 0.467100000000000 0.504600000000000 0.492400000000000 0.494000000000000 0.433300000000000 0.499100000000000 0.499300000000000 0.481100000000000];
%data1=[0.0982000000000000 0.100000000000000 0.100000000000000 0.100000000000000 0.100000000000000 0.100000000000000 0.174000000000000 0.127800000000000 0.100000000000000 0.144900000000000 0.158600000000000 0.195200000000000 0.213900000000000 0.207500000000000 0.246700000000000 0.235000000000000 0.255800000000000 0.252800000000000 0.278400000000000 0.257300000000000 0.295500000000000 0.290100000000000 0.287900000000000 0.312000000000000 0.295100000000000 0.313900000000000 0.292500000000000 0.348100000000000 0.306600000000000 0.298100000000000 0.327400000000000 0.300700000000000 0.346400000000000 0.325200000000000 0.341600000000000 0.348100000000000 0.359200000000000 0.373800000000000 0.384600000000000 0.370000000000000 0.382400000000000 0.368800000000000 0.360500000000000 0.388800000000000 0.389300000000000 0.335500000000000 0.407400000000000 0.404400000000000 0.397400000000000 0.386000000000000 0.447200000000000 0.418900000000000 0.324700000000000 0.436000000000000 0.435500000000000 0.418100000000000 0.448400000000000 0.405600000000000 0.435200000000000 0.434600000000000 0.434900000000000 0.398800000000000 0.447900000000000 0.458400000000000 0.458800000000000 0.454400000000000 0.462400000000000 0.439400000000000 0.432400000000000 0.455300000000000 0.460100000000000 0.472600000000000 0.457400000000000 0.455700000000000 0.461200000000000 0.486400000000000 0.471800000000000 0.488500000000000 0.491500000000000 0.482000000000000 0.479200000000000 0.458600000000000 0.493600000000000 0.476600000000000 0.484700000000000 0.486300000000000 0.490500000000000 0.399800000000000 0.501100000000000 0.488300000000000 0.472400000000000 0.499400000000000 0.495600000000000 0.467100000000000 0.504600000000000 0.492400000000000 0.494000000000000 0.433300000000000 0.499100000000000 0.499300000000000 0.481100000000000 0.0962800000000000 0.100000000000000 0.100000000000000 0.100000000000000 0.100000000000000 0.100000000000000 0.178020000000000 0.129220000000000 0.100000000000000 0.145080000000000 0.158540000000000 0.203520000000000 0.226780000000000 0.213420000000000 0.246580000000000 0.235160000000000 0.262320000000000 0.258500000000000 0.282380000000000 0.265120000000000 0.299300000000000 0.295060000000000 0.288720000000000 0.318620000000000 0.304620000000000 0.321160000000000 0.300700000000000 0.357960000000000 0.306220000000000 0.296940000000000 0.337880000000000 0.308640000000000 0.353780000000000 0.331020000000000 0.352280000000000 0.360340000000000 0.367480000000000 0.382960000000000 0.394520000000000 0.385080000000000 0.390920000000000 0.369860000000000 0.365660000000000 0.394340000000000 0.394680000000000 0.342240000000000 0.414180000000000 0.411140000000000 0.401880000000000 0.397340000000000 0.456940000000000 0.431660000000000 0.336400000000000 0.445420000000000 0.445800000000000 0.432920000000000 0.461380000000000 0.415140000000000 0.447960000000000 0.445680000000000 0.439380000000000 0.414860000000000 0.459920000000000 0.468900000000000 0.468640000000000 0.466880000000000 0.476620000000000 0.456820000000000 0.446220000000000 0.469240000000000 0.472260000000000 0.487820000000000 0.474420000000000 0.467380000000000 0.482840000000000 0.503760000000000 0.490400000000000 0.514060000000000 0.512720000000000 0.498780000000000 0.507220000000000 0.481580000000000 0.515980000000000 0.502000000000000 0.498780000000000 0.500860000000000 0.508940000000000 0.415240000000000 0.524660000000000 0.519320000000000 0.495620000000000 0.522680000000000 0.514840000000000 0.491660000000000 0.529340000000000 0.516280000000000 0.521240000000000 0.455820000000000 0.520040000000000 0.521040000000000 0.513500000000000 2.30403345706940 2.30620311184883 2.31039898137093 2.30411348122120 2.88908658975005 2.30320027412891 2.27055480508804 2.27185462116718 2.31468903849602 2.24158897457123 2.23321191825390 2.16947996738434 2.13743612764120 2.14469002091885 2.07382115344763 2.07303473911762 2.01240907649756 2.02058536282063 1.99229453734398 2.00099799292564 1.91771962085485 1.95623415379047 1.90886361872435 1.84007756650448 1.85846258950472 1.81173686036110 1.87069405502558 1.70720694911957 1.78694309985399 1.88076963901043 1.79198827629328 1.79304376233339 1.74543715986967 1.74728340050697 1.74368234551430 1.71251833550692 1.71174252554894 1.64624100121021 1.65337168209076 1.65349390598536 1.61115312357187 1.66563556685209 1.74209241328239 1.61529556299090 1.57481566437483 1.86816865405440 1.57661045122385 1.60405130853891 1.58453108724833 1.60875749540806 1.48079197016239 1.54164715612173 1.98133160567760 1.50394958159924 1.49708260222912 1.52389105909824 1.47462346817970 1.54393280265570 1.50437390958548 1.50237421104431 1.51986185230732 1.56954605160475 1.45782959187269 1.45864826339722 1.44693543951273 1.43590127870560 1.45094174188614 1.48082629955053 1.53049241093159 1.46549421633720 1.44010556263685 1.40471962616920 1.46320253729939 1.44471210299730 1.47889499145389 1.36336112412572 1.39870475776315 1.34833795078754 1.35553333128452 1.40868777657509 1.36306389833331 1.43852580796480 1.34466211567402 1.36305228626609 1.39321074314117 1.41037521979928 1.39247402633429 1.64792346858263 1.33386126009941 1.33614172063828 1.42207676080108 1.35024720188260 1.37456270253301 1.42990424763918 1.30571148571849 1.34804963823318 1.38008130750895 1.49137777404904 1.37857525081038 1.35224813779116 1.40299109038830];
plot((data1), 'b:x',...
'LineWidth',1,...
'MarkerSize',6,...
'MarkerEdgeColor','b',...
'MarkerFaceColor',[0.5,0.5,0.5]); %FDD
hold on;
%data2=[0.0982000000000000 0.100000000000000 0.100000000000000 0.100000000000000 0.141300000000000 0.101500000000000 0.129400000000000 0.115200000000000 0.132400000000000 0.114400000000000 0.134700000000000 0.182400000000000 0.141300000000000 0.201100000000000 0.210100000000000 0.174600000000000 0.182800000000000 0.193100000000000 0.183200000000000 0.201800000000000 0.214600000000000 0.227100000000000 0.187400000000000 0.211500000000000 0.215100000000000 0.225700000000000 0.234500000000000 0.236300000000000 0.210700000000000 0.228300000000000 0.224000000000000 0.236900000000000 0.220100000000000 0.223000000000000 0.223500000000000 0.232200000000000 0.234500000000000 0.231800000000000 0.249000000000000 0.261300000000000 0.242800000000000 0.254000000000000 0.239800000000000 0.282600000000000 0.232100000000000 0.269600000000000 0.256900000000000 0.256000000000000 0.269900000000000 0.252900000000000 0.266900000000000 0.278400000000000 0.247200000000000 0.235000000000000 0.271800000000000 0.266100000000000 0.285000000000000 0.288100000000000 0.265900000000000 0.270400000000000 0.279200000000000 0.250200000000000 0.267100000000000 0.265900000000000 0.278300000000000 0.290200000000000 0.285600000000000 0.262000000000000 0.332500000000000 0.282600000000000 0.309300000000000 0.295500000000000 0.313200000000000 0.292900000000000 0.336000000000000 0.273000000000000 0.318900000000000 0.315100000000000 0.322900000000000 0.333300000000000 0.341600000000000 0.329600000000000 0.317300000000000 0.307300000000000 0.324600000000000 0.325400000000000 0.316700000000000 0.332700000000000 0.360000000000000 0.337400000000000 0.350500000000000 0.326000000000000 0.333500000000000 0.334900000000000 0.284300000000000 0.349300000000000 0.331500000000000 0.345800000000000 0.376400000000000 0.324700000000000 0.341200000000000 0.0962800000000000 0.100000000000000 0.100000000000000 0.100000000000000 0.143360000000000 0.100800000000000 0.132480000000000 0.114700000000000 0.134660000000000 0.116440000000000 0.136440000000000 0.183240000000000 0.144000000000000 0.205660000000000 0.212460000000000 0.177340000000000 0.184280000000000 0.200080000000000 0.184620000000000 0.203840000000000 0.216440000000000 0.231160000000000 0.191140000000000 0.216180000000000 0.220240000000000 0.229880000000000 0.238260000000000 0.240500000000000 0.214040000000000 0.231560000000000 0.227140000000000 0.242100000000000 0.222260000000000 0.230520000000000 0.226700000000000 0.237560000000000 0.243520000000000 0.234780000000000 0.256800000000000 0.270580000000000 0.250420000000000 0.260040000000000 0.245800000000000 0.289660000000000 0.235840000000000 0.276020000000000 0.262040000000000 0.267260000000000 0.276280000000000 0.258820000000000 0.273060000000000 0.284220000000000 0.253720000000000 0.243200000000000 0.280240000000000 0.272280000000000 0.286400000000000 0.295460000000000 0.272200000000000 0.279260000000000 0.287300000000000 0.260500000000000 0.273020000000000 0.270620000000000 0.284100000000000 0.293940000000000 0.291520000000000 0.270320000000000 0.337980000000000 0.287880000000000 0.315980000000000 0.301700000000000 0.320640000000000 0.302260000000000 0.342520000000000 0.284940000000000 0.323200000000000 0.328140000000000 0.332280000000000 0.340940000000000 0.345260000000000 0.341740000000000 0.327940000000000 0.317620000000000 0.332200000000000 0.330540000000000 0.325120000000000 0.341880000000000 0.366960000000000 0.350380000000000 0.356400000000000 0.331960000000000 0.337860000000000 0.343540000000000 0.291600000000000 0.358760000000000 0.340480000000000 0.359220000000000 0.391100000000000 0.331060000000000 0.351360000000000 2.30403345706940 2.58294073407173 2.58252196060896 2.46260883173227 2.49649519561768 2.34493639903545 2.43887108397007 2.35836091778994 2.56127216559529 2.31343037407875 2.30341100191832 2.30315941853285 2.40915726998806 2.26684129122972 2.22854928326130 2.17484806720495 2.27165951039314 2.33679404134870 2.63663573566079 2.21499631760359 2.27634981605291 2.22423972139359 2.17898286499023 2.15965188021898 2.23706752499938 2.15205995868683 2.14242945144296 2.20432278037667 2.34539556793332 2.20229324579597 3.08870125625372 2.08535062055826 2.18629155718327 2.12313241969705 2.21572318946958 2.09823822740316 2.19951685590744 2.22639669905424 2.21786008534431 2.05185532943845 2.48449608939171 2.30864981649101 2.34107716530681 2.11923110361099 2.30847922790229 2.04276615212560 2.09200612814307 2.05339681418061 2.07550545091808 2.32013278304338 2.24261995757639 2.11376671018124 2.24699458668590 2.20619229155838 2.09894527001858 2.15184423955798 2.01848260437727 2.06588567929626 2.05491635250628 2.28502274921656 2.11908894898891 2.12042603582919 2.03952727789223 2.28185465949535 2.04183200688839 2.08976939432263 2.50489575515747 2.20024360282660 2.25615783748686 2.30589702999949 2.33929013067067 2.37101616728783 2.17821436372280 2.43110886326909 1.95825491402864 2.55302719432026 2.01404658394039 2.07794829551101 2.00870409385979 2.12540909683317 2.08437894823730 2.10572141258478 2.21717954049557 2.18214925168216 2.02124524503589 2.40908848293304 2.07087317122400 2.14133017167866 2.07867014306545 2.21111452931643 2.19940865734041 2.69027976357460 2.26184977896929 2.26365538262367 2.53550740220368 2.12581349619567 2.10129890293598 2.14015233008921 2.16859523135632 2.11730523330390 2.13241523301780];
data2=[0.0982000000000000 0.100000000000000 0.100000000000000 0.100000000000000 0.141300000000000 0.101500000000000 0.129400000000000 0.115200000000000 0.132400000000000 0.114400000000000 0.134700000000000 0.182400000000000 0.141300000000000 0.201100000000000 0.210100000000000 0.174600000000000 0.182800000000000 0.193100000000000 0.183200000000000 0.201800000000000 0.214600000000000 0.227100000000000 0.187400000000000 0.211500000000000 0.215100000000000 0.225700000000000 0.234500000000000 0.236300000000000 0.210700000000000 0.228300000000000 0.224000000000000 0.236900000000000 0.220100000000000 0.223000000000000 0.223500000000000 0.232200000000000 0.234500000000000 0.231800000000000 0.249000000000000 0.261300000000000 0.242800000000000 0.254000000000000 0.239800000000000 0.282600000000000 0.232100000000000 0.269600000000000 0.256900000000000 0.256000000000000 0.269900000000000 0.252900000000000 0.266900000000000 0.278400000000000 0.247200000000000 0.235000000000000 0.271800000000000 0.266100000000000 0.285000000000000 0.288100000000000 0.265900000000000 0.270400000000000 0.279200000000000 0.250200000000000 0.267100000000000 0.265900000000000 0.278300000000000 0.290200000000000 0.285600000000000 0.262000000000000 0.332500000000000 0.282600000000000 0.309300000000000 0.295500000000000 0.313200000000000 0.292900000000000 0.336000000000000 0.273000000000000 0.318900000000000 0.315100000000000 0.322900000000000 0.333300000000000 0.341600000000000 0.329600000000000 0.317300000000000 0.307300000000000 0.324600000000000 0.325400000000000 0.316700000000000 0.332700000000000 0.360000000000000 0.337400000000000 0.350500000000000 0.326000000000000 0.333500000000000 0.334900000000000 0.284300000000000 0.349300000000000 0.331500000000000 0.345800000000000 0.376400000000000 0.324700000000000 0.341200000000000];
plot((data2), '--k*',...
'LineWidth',1,...
'MarkerSize',6,...
'MarkerEdgeColor','k',...
'MarkerFaceColor',[0.5,0.5,0.5]); % TDD
hold on;
%data3=[0.0982000000000000 0.0999000000000000 0.133900000000000 0.175800000000000 0.216600000000000 0.219100000000000 0.224400000000000 0.240900000000000 0.295400000000000 0.314800000000000 0.284200000000000 0.342000000000000 0.354500000000000 0.361700000000000 0.390500000000000 0.379200000000000 0.361800000000000 0.424200000000000 0.459400000000000 0.496200000000000 0.387000000000000 0.462200000000000 0.517300000000000 0.516900000000000 0.529900000000000 0.523200000000000 0.575100000000000 0.570900000000000 0.549700000000000 0.570600000000000 0.582900000000000 0.583600000000000 0.596300000000000 0.614400000000000 0.549900000000000 0.583100000000000 0.590000000000000 0.601600000000000 0.617500000000000 0.624000000000000 0.625500000000000 0.600400000000000 0.629400000000000 0.649500000000000 0.639700000000000 0.661700000000000 0.664700000000000 0.644000000000000 0.652200000000000 0.620900000000000 0.652700000000000 0.663700000000000 0.674800000000000 0.662200000000000 0.616800000000000 0.688200000000000 0.661500000000000 0.675000000000000 0.604100000000000 0.685700000000000 0.656300000000000 0.694000000000000 0.684800000000000 0.650900000000000 0.690500000000000 0.696000000000000 0.707500000000000 0.706000000000000 0.670100000000000 0.687400000000000 0.684600000000000 0.695100000000000 0.704800000000000 0.713100000000000 0.712300000000000 0.709200000000000 0.703000000000000 0.687700000000000 0.708000000000000 0.719000000000000 0.713300000000000 0.720400000000000 0.700800000000000 0.715100000000000 0.698700000000000 0.693900000000000 0.708200000000000 0.711500000000000 0.712600000000000 0.686700000000000 0.724500000000000 0.708800000000000 0.706900000000000 0.712300000000000 0.707300000000000 0.712300000000000 0.717000000000000 0.683200000000000 0.711000000000000 0.710000000000000 0.703600000000000 0.0962800000000000 0.0999000000000000 0.132720000000000 0.178980000000000 0.223620000000000 0.222100000000000 0.227780000000000 0.245720000000000 0.300780000000000 0.321240000000000 0.292180000000000 0.356020000000000 0.370360000000000 0.371160000000000 0.396400000000000 0.388400000000000 0.372200000000000 0.430760000000000 0.481560000000000 0.507440000000000 0.403300000000000 0.478260000000000 0.537560000000000 0.530020000000000 0.546800000000000 0.541420000000000 0.597220000000000 0.597700000000000 0.569420000000000 0.593540000000000 0.603240000000000 0.616880000000000 0.627100000000000 0.650900000000000 0.579080000000000 0.608580000000000 0.612240000000000 0.630340000000000 0.658580000000000 0.664040000000000 0.657380000000000 0.632820000000000 0.674780000000000 0.686380000000000 0.685200000000000 0.711860000000000 0.715700000000000 0.693400000000000 0.702700000000000 0.664440000000000 0.711400000000000 0.723520000000000 0.738860000000000 0.719400000000000 0.672460000000000 0.759800000000000 0.727420000000000 0.739660000000000 0.659940000000000 0.755760000000000 0.728160000000000 0.767180000000000 0.765640000000000 0.724080000000000 0.778240000000000 0.770500000000000 0.794360000000000 0.794180000000000 0.752620000000000 0.772200000000000 0.776880000000000 0.787480000000000 0.807500000000000 0.815940000000000 0.819140000000000 0.821060000000000 0.810640000000000 0.785560000000000 0.820340000000000 0.830580000000000 0.822920000000000 0.831040000000000 0.815060000000000 0.841140000000000 0.811940000000000 0.817120000000000 0.831180000000000 0.834780000000000 0.846060000000000 0.801980000000000 0.849240000000000 0.841660000000000 0.840600000000000 0.838480000000000 0.835300000000000 0.848980000000000 0.857040000000000 0.799880000000000 0.855100000000000 0.856380000000000 0.850860000000000 2.30403345706940 2.30247331855774 2.29206799002171 2.22138480513334 2.17030496577740 2.14932985656023 2.17292123672724 2.10440733092546 2.05782185929298 2.03673820112944 2.05462464496136 1.88216099623203 1.81909628403664 1.84865675983787 1.71930885638356 1.74371968320370 1.77456330724716 1.64088080756903 1.45924052950501 1.39191162580252 1.72287043940544 1.47140950268865 1.30046321342587 1.34413053021550 1.28831927713990 1.31471152837157 1.14929039076209 1.15198232666373 1.22942819116235 1.13631409095645 1.13110593016624 1.09689207472205 1.06355274133444 1.00326429331183 1.23257367498934 1.12906173848629 1.10530750162661 1.05543933474422 0.974079709241390 0.963176962854266 0.978003551692963 1.06407500924468 0.941690696873069 0.905565619340539 0.901800774917603 0.833073854821920 0.822191414062977 0.891876123768091 0.861502855923176 0.975717334531546 0.826373370716572 0.798985124896169 0.759595058500171 0.809250582645536 0.952899924238920 0.699983941748738 0.804553416114450 0.748832114275694 0.962462495083213 0.719030100390315 0.786734273561239 0.684091330285668 0.689533563066721 0.805235302097201 0.648054553921223 0.671210459069610 0.605958068572879 0.600356252956092 0.715270331913829 0.671395148705244 0.655545575120449 0.621452955785692 0.574328052828908 0.551872626140118 0.543848036614060 0.536929290278554 0.566539987967908 0.636952204911113 0.546297250326574 0.511446171325445 0.531345062197447 0.509428885094821 0.543033683468401 0.494568289033175 0.560318581708670 0.547666536503434 0.514744578185082 0.503186425477564 0.463938360048234 0.606174906817675 0.463111603249311 0.478287227110267 0.489765724906027 0.493406685999632 0.496092984946072 0.468117912388742 0.445120768805295 0.653751816623509 0.446505204291642 0.438260396280587 0.458316633860320];
data3=[0.0982000000000000 0.0999000000000000 0.133900000000000 0.175800000000000 0.216600000000000 0.219100000000000 0.224400000000000 0.240900000000000 0.295400000000000 0.314800000000000 0.284200000000000 0.342000000000000 0.354500000000000 0.361700000000000 0.390500000000000 0.379200000000000 0.361800000000000 0.424200000000000 0.459400000000000 0.496200000000000 0.387000000000000 0.462200000000000 0.517300000000000 0.516900000000000 0.529900000000000 0.523200000000000 0.575100000000000 0.570900000000000 0.549700000000000 0.570600000000000 0.582900000000000 0.583600000000000 0.596300000000000 0.614400000000000 0.549900000000000 0.583100000000000 0.590000000000000 0.601600000000000 0.617500000000000 0.624000000000000 0.625500000000000 0.600400000000000 0.629400000000000 0.649500000000000 0.639700000000000 0.661700000000000 0.664700000000000 0.644000000000000 0.652200000000000 0.620900000000000 0.652700000000000 0.663700000000000 0.674800000000000 0.662200000000000 0.616800000000000 0.688200000000000 0.661500000000000 0.675000000000000 0.604100000000000 0.685700000000000 0.656300000000000 0.694000000000000 0.684800000000000 0.650900000000000 0.690500000000000 0.696000000000000 0.707500000000000 0.706000000000000 0.670100000000000 0.687400000000000 0.684600000000000 0.695100000000000 0.704800000000000 0.713100000000000 0.712300000000000 0.709200000000000 0.703000000000000 0.687700000000000 0.708000000000000 0.719000000000000 0.713300000000000 0.720400000000000 0.700800000000000 0.715100000000000 0.698700000000000 0.693900000000000 0.708200000000000 0.711500000000000 0.712600000000000 0.686700000000000 0.724500000000000 0.708800000000000 0.706900000000000 0.712300000000000 0.707300000000000 0.712300000000000 0.717000000000000 0.683200000000000 0.711000000000000 0.710000000000000 0.703600000000000];
plot((data3), '-.hr',...
'LineWidth',1,...
'MarkerSize',6,...
'MarkerEdgeColor','r',...
'MarkerFaceColor',[0.5,0.5,0.5]); %NOMA
set(gca,'XMinorTick','on','YMinorTick','on');
grid on;
TextFontSize=18;
% LegendFontSize = 18;
set(0,'DefaultAxesFontName','Times',...
'DefaultLineLineWidth',1,...
'DefaultLineMarkerSize',6);
set(gca,'FontName','Times New Roman','FontSize',TextFontSize);
% set(gca,'FontSize',30);
set(gca,'FontSize',18);
xticks([0,1000,2000,3000]);
%xticks([1000,2000,3000]);
xlabel('Global iterations')
ylabel({'Bandwidth utilization (kbits/ms/MHz)'},'FontSize',18)
legend('FDD','TDD','NOMA','FontSize',15)
hold off;

Risposta accettata

Sulaymon Eshkabilov
Sulaymon Eshkabilov il 5 Feb 2023
Here is the corrected code:
clearvars;
clc;close all;
figure;
clf('reset');
%data1=[0.0982000000000000 0.100000000000000 0.100000000000000 0.100000000000000 0.100000000000000 0.100000000000000 0.174000000000000 0.127800000000000 0.100000000000000 0.144900000000000 0.158600000000000 0.195200000000000 0.213900000000000 0.207500000000000 0.246700000000000 0.235000000000000 0.255800000000000 0.252800000000000 0.278400000000000 0.257300000000000 0.295500000000000 0.290100000000000 0.287900000000000 0.312000000000000 0.295100000000000 0.313900000000000 0.292500000000000 0.348100000000000 0.306600000000000 0.298100000000000 0.327400000000000 0.300700000000000 0.346400000000000 0.325200000000000 0.341600000000000 0.348100000000000 0.359200000000000 0.373800000000000 0.384600000000000 0.370000000000000 0.382400000000000 0.368800000000000 0.360500000000000 0.388800000000000 0.389300000000000 0.335500000000000 0.407400000000000 0.404400000000000 0.397400000000000 0.386000000000000 0.447200000000000 0.418900000000000 0.324700000000000 0.436000000000000 0.435500000000000 0.418100000000000 0.448400000000000 0.405600000000000 0.435200000000000 0.434600000000000 0.434900000000000 0.398800000000000 0.447900000000000 0.458400000000000 0.458800000000000 0.454400000000000 0.462400000000000 0.439400000000000 0.432400000000000 0.455300000000000 0.460100000000000 0.472600000000000 0.457400000000000 0.455700000000000 0.461200000000000 0.486400000000000 0.471800000000000 0.488500000000000 0.491500000000000 0.482000000000000 0.479200000000000 0.458600000000000 0.493600000000000 0.476600000000000 0.484700000000000 0.486300000000000 0.490500000000000 0.399800000000000 0.501100000000000 0.488300000000000 0.472400000000000 0.499400000000000 0.495600000000000 0.467100000000000 0.504600000000000 0.492400000000000 0.494000000000000 0.433300000000000 0.499100000000000 0.499300000000000 0.481100000000000 0.0962800000000000 0.100000000000000 0.100000000000000 0.100000000000000 0.100000000000000 0.100000000000000 0.178020000000000 0.129220000000000 0.100000000000000 0.145080000000000 0.158540000000000 0.203520000000000 0.226780000000000 0.213420000000000 0.246580000000000 0.235160000000000 0.262320000000000 0.258500000000000 0.282380000000000 0.265120000000000 0.299300000000000 0.295060000000000 0.288720000000000 0.318620000000000 0.304620000000000 0.321160000000000 0.300700000000000 0.357960000000000 0.306220000000000 0.296940000000000 0.337880000000000 0.308640000000000 0.353780000000000 0.331020000000000 0.352280000000000 0.360340000000000 0.367480000000000 0.382960000000000 0.394520000000000 0.385080000000000 0.390920000000000 0.369860000000000 0.365660000000000 0.394340000000000 0.394680000000000 0.342240000000000 0.414180000000000 0.411140000000000 0.401880000000000 0.397340000000000 0.456940000000000 0.431660000000000 0.336400000000000 0.445420000000000 0.445800000000000 0.432920000000000 0.461380000000000 0.415140000000000 0.447960000000000 0.445680000000000 0.439380000000000 0.414860000000000 0.459920000000000 0.468900000000000 0.468640000000000 0.466880000000000 0.476620000000000 0.456820000000000 0.446220000000000 0.469240000000000 0.472260000000000 0.487820000000000 0.474420000000000 0.467380000000000 0.482840000000000 0.503760000000000 0.490400000000000 0.514060000000000 0.512720000000000 0.498780000000000 0.507220000000000 0.481580000000000 0.515980000000000 0.502000000000000 0.498780000000000 0.500860000000000 0.508940000000000 0.415240000000000 0.524660000000000 0.519320000000000 0.495620000000000 0.522680000000000 0.514840000000000 0.491660000000000 0.529340000000000 0.516280000000000 0.521240000000000 0.455820000000000 0.520040000000000 0.521040000000000 0.513500000000000 2.30403345706940 2.30620311184883 2.31039898137093 2.30411348122120 2.88908658975005 2.30320027412891 2.27055480508804 2.27185462116718 2.31468903849602 2.24158897457123 2.23321191825390 2.16947996738434 2.13743612764120 2.14469002091885 2.07382115344763 2.07303473911762 2.01240907649756 2.02058536282063 1.99229453734398 2.00099799292564 1.91771962085485 1.95623415379047 1.90886361872435 1.84007756650448 1.85846258950472 1.81173686036110 1.87069405502558 1.70720694911957 1.78694309985399 1.88076963901043 1.79198827629328 1.79304376233339 1.74543715986967 1.74728340050697 1.74368234551430 1.71251833550692 1.71174252554894 1.64624100121021 1.65337168209076 1.65349390598536 1.61115312357187 1.66563556685209 1.74209241328239 1.61529556299090 1.57481566437483 1.86816865405440 1.57661045122385 1.60405130853891 1.58453108724833 1.60875749540806 1.48079197016239 1.54164715612173 1.98133160567760 1.50394958159924 1.49708260222912 1.52389105909824 1.47462346817970 1.54393280265570 1.50437390958548 1.50237421104431 1.51986185230732 1.56954605160475 1.45782959187269 1.45864826339722 1.44693543951273 1.43590127870560 1.45094174188614 1.48082629955053 1.53049241093159 1.46549421633720 1.44010556263685 1.40471962616920 1.46320253729939 1.44471210299730 1.47889499145389 1.36336112412572 1.39870475776315 1.34833795078754 1.35553333128452 1.40868777657509 1.36306389833331 1.43852580796480 1.34466211567402 1.36305228626609 1.39321074314117 1.41037521979928 1.39247402633429 1.64792346858263 1.33386126009941 1.33614172063828 1.42207676080108 1.35024720188260 1.37456270253301 1.42990424763918 1.30571148571849 1.34804963823318 1.38008130750895 1.49137777404904 1.37857525081038 1.35224813779116 1.40299109038830];
data1=[0.0982000000000000 0.100000000000000 0.100000000000000 0.100000000000000 0.100000000000000 0.100000000000000 0.174000000000000 0.127800000000000 0.100000000000000 0.144900000000000 0.158600000000000 0.195200000000000 0.213900000000000 0.207500000000000 0.246700000000000 0.235000000000000 0.255800000000000 0.252800000000000 0.278400000000000 0.257300000000000 0.295500000000000 0.290100000000000 0.287900000000000 0.312000000000000 0.295100000000000 0.313900000000000 0.292500000000000 0.348100000000000 0.306600000000000 0.298100000000000 0.327400000000000 0.300700000000000 0.346400000000000 0.325200000000000 0.341600000000000 0.348100000000000 0.359200000000000 0.373800000000000 0.384600000000000 0.370000000000000 0.382400000000000 0.368800000000000 0.360500000000000 0.388800000000000 0.389300000000000 0.335500000000000 0.407400000000000 0.404400000000000 0.397400000000000 0.386000000000000 0.447200000000000 0.418900000000000 0.324700000000000 0.436000000000000 0.435500000000000 0.418100000000000 0.448400000000000 0.405600000000000 0.435200000000000 0.434600000000000 0.434900000000000 0.398800000000000 0.447900000000000 0.458400000000000 0.458800000000000 0.454400000000000 0.462400000000000 0.439400000000000 0.432400000000000 0.455300000000000 0.460100000000000 0.472600000000000 0.457400000000000 0.455700000000000 0.461200000000000 0.486400000000000 0.471800000000000 0.488500000000000 0.491500000000000 0.482000000000000 0.479200000000000 0.458600000000000 0.493600000000000 0.476600000000000 0.484700000000000 0.486300000000000 0.490500000000000 0.399800000000000 0.501100000000000 0.488300000000000 0.472400000000000 0.499400000000000 0.495600000000000 0.467100000000000 0.504600000000000 0.492400000000000 0.494000000000000 0.433300000000000 0.499100000000000 0.499300000000000 0.481100000000000];
%data1=[0.0982000000000000 0.100000000000000 0.100000000000000 0.100000000000000 0.100000000000000 0.100000000000000 0.174000000000000 0.127800000000000 0.100000000000000 0.144900000000000 0.158600000000000 0.195200000000000 0.213900000000000 0.207500000000000 0.246700000000000 0.235000000000000 0.255800000000000 0.252800000000000 0.278400000000000 0.257300000000000 0.295500000000000 0.290100000000000 0.287900000000000 0.312000000000000 0.295100000000000 0.313900000000000 0.292500000000000 0.348100000000000 0.306600000000000 0.298100000000000 0.327400000000000 0.300700000000000 0.346400000000000 0.325200000000000 0.341600000000000 0.348100000000000 0.359200000000000 0.373800000000000 0.384600000000000 0.370000000000000 0.382400000000000 0.368800000000000 0.360500000000000 0.388800000000000 0.389300000000000 0.335500000000000 0.407400000000000 0.404400000000000 0.397400000000000 0.386000000000000 0.447200000000000 0.418900000000000 0.324700000000000 0.436000000000000 0.435500000000000 0.418100000000000 0.448400000000000 0.405600000000000 0.435200000000000 0.434600000000000 0.434900000000000 0.398800000000000 0.447900000000000 0.458400000000000 0.458800000000000 0.454400000000000 0.462400000000000 0.439400000000000 0.432400000000000 0.455300000000000 0.460100000000000 0.472600000000000 0.457400000000000 0.455700000000000 0.461200000000000 0.486400000000000 0.471800000000000 0.488500000000000 0.491500000000000 0.482000000000000 0.479200000000000 0.458600000000000 0.493600000000000 0.476600000000000 0.484700000000000 0.486300000000000 0.490500000000000 0.399800000000000 0.501100000000000 0.488300000000000 0.472400000000000 0.499400000000000 0.495600000000000 0.467100000000000 0.504600000000000 0.492400000000000 0.494000000000000 0.433300000000000 0.499100000000000 0.499300000000000 0.481100000000000 0.0962800000000000 0.100000000000000 0.100000000000000 0.100000000000000 0.100000000000000 0.100000000000000 0.178020000000000 0.129220000000000 0.100000000000000 0.145080000000000 0.158540000000000 0.203520000000000 0.226780000000000 0.213420000000000 0.246580000000000 0.235160000000000 0.262320000000000 0.258500000000000 0.282380000000000 0.265120000000000 0.299300000000000 0.295060000000000 0.288720000000000 0.318620000000000 0.304620000000000 0.321160000000000 0.300700000000000 0.357960000000000 0.306220000000000 0.296940000000000 0.337880000000000 0.308640000000000 0.353780000000000 0.331020000000000 0.352280000000000 0.360340000000000 0.367480000000000 0.382960000000000 0.394520000000000 0.385080000000000 0.390920000000000 0.369860000000000 0.365660000000000 0.394340000000000 0.394680000000000 0.342240000000000 0.414180000000000 0.411140000000000 0.401880000000000 0.397340000000000 0.456940000000000 0.431660000000000 0.336400000000000 0.445420000000000 0.445800000000000 0.432920000000000 0.461380000000000 0.415140000000000 0.447960000000000 0.445680000000000 0.439380000000000 0.414860000000000 0.459920000000000 0.468900000000000 0.468640000000000 0.466880000000000 0.476620000000000 0.456820000000000 0.446220000000000 0.469240000000000 0.472260000000000 0.487820000000000 0.474420000000000 0.467380000000000 0.482840000000000 0.503760000000000 0.490400000000000 0.514060000000000 0.512720000000000 0.498780000000000 0.507220000000000 0.481580000000000 0.515980000000000 0.502000000000000 0.498780000000000 0.500860000000000 0.508940000000000 0.415240000000000 0.524660000000000 0.519320000000000 0.495620000000000 0.522680000000000 0.514840000000000 0.491660000000000 0.529340000000000 0.516280000000000 0.521240000000000 0.455820000000000 0.520040000000000 0.521040000000000 0.513500000000000 2.30403345706940 2.30620311184883 2.31039898137093 2.30411348122120 2.88908658975005 2.30320027412891 2.27055480508804 2.27185462116718 2.31468903849602 2.24158897457123 2.23321191825390 2.16947996738434 2.13743612764120 2.14469002091885 2.07382115344763 2.07303473911762 2.01240907649756 2.02058536282063 1.99229453734398 2.00099799292564 1.91771962085485 1.95623415379047 1.90886361872435 1.84007756650448 1.85846258950472 1.81173686036110 1.87069405502558 1.70720694911957 1.78694309985399 1.88076963901043 1.79198827629328 1.79304376233339 1.74543715986967 1.74728340050697 1.74368234551430 1.71251833550692 1.71174252554894 1.64624100121021 1.65337168209076 1.65349390598536 1.61115312357187 1.66563556685209 1.74209241328239 1.61529556299090 1.57481566437483 1.86816865405440 1.57661045122385 1.60405130853891 1.58453108724833 1.60875749540806 1.48079197016239 1.54164715612173 1.98133160567760 1.50394958159924 1.49708260222912 1.52389105909824 1.47462346817970 1.54393280265570 1.50437390958548 1.50237421104431 1.51986185230732 1.56954605160475 1.45782959187269 1.45864826339722 1.44693543951273 1.43590127870560 1.45094174188614 1.48082629955053 1.53049241093159 1.46549421633720 1.44010556263685 1.40471962616920 1.46320253729939 1.44471210299730 1.47889499145389 1.36336112412572 1.39870475776315 1.34833795078754 1.35553333128452 1.40868777657509 1.36306389833331 1.43852580796480 1.34466211567402 1.36305228626609 1.39321074314117 1.41037521979928 1.39247402633429 1.64792346858263 1.33386126009941 1.33614172063828 1.42207676080108 1.35024720188260 1.37456270253301 1.42990424763918 1.30571148571849 1.34804963823318 1.38008130750895 1.49137777404904 1.37857525081038 1.35224813779116 1.40299109038830];
N = 1:length(data1);
plot(N,(data1), 'b:x',...
'LineWidth',1,...
'MarkerSize',6,...
'MarkerEdgeColor','b',...
'MarkerFaceColor',[0.5,0.5,0.5]); %FDD
hold on;
%data2=[0.0982000000000000 0.100000000000000 0.100000000000000 0.100000000000000 0.141300000000000 0.101500000000000 0.129400000000000 0.115200000000000 0.132400000000000 0.114400000000000 0.134700000000000 0.182400000000000 0.141300000000000 0.201100000000000 0.210100000000000 0.174600000000000 0.182800000000000 0.193100000000000 0.183200000000000 0.201800000000000 0.214600000000000 0.227100000000000 0.187400000000000 0.211500000000000 0.215100000000000 0.225700000000000 0.234500000000000 0.236300000000000 0.210700000000000 0.228300000000000 0.224000000000000 0.236900000000000 0.220100000000000 0.223000000000000 0.223500000000000 0.232200000000000 0.234500000000000 0.231800000000000 0.249000000000000 0.261300000000000 0.242800000000000 0.254000000000000 0.239800000000000 0.282600000000000 0.232100000000000 0.269600000000000 0.256900000000000 0.256000000000000 0.269900000000000 0.252900000000000 0.266900000000000 0.278400000000000 0.247200000000000 0.235000000000000 0.271800000000000 0.266100000000000 0.285000000000000 0.288100000000000 0.265900000000000 0.270400000000000 0.279200000000000 0.250200000000000 0.267100000000000 0.265900000000000 0.278300000000000 0.290200000000000 0.285600000000000 0.262000000000000 0.332500000000000 0.282600000000000 0.309300000000000 0.295500000000000 0.313200000000000 0.292900000000000 0.336000000000000 0.273000000000000 0.318900000000000 0.315100000000000 0.322900000000000 0.333300000000000 0.341600000000000 0.329600000000000 0.317300000000000 0.307300000000000 0.324600000000000 0.325400000000000 0.316700000000000 0.332700000000000 0.360000000000000 0.337400000000000 0.350500000000000 0.326000000000000 0.333500000000000 0.334900000000000 0.284300000000000 0.349300000000000 0.331500000000000 0.345800000000000 0.376400000000000 0.324700000000000 0.341200000000000 0.0962800000000000 0.100000000000000 0.100000000000000 0.100000000000000 0.143360000000000 0.100800000000000 0.132480000000000 0.114700000000000 0.134660000000000 0.116440000000000 0.136440000000000 0.183240000000000 0.144000000000000 0.205660000000000 0.212460000000000 0.177340000000000 0.184280000000000 0.200080000000000 0.184620000000000 0.203840000000000 0.216440000000000 0.231160000000000 0.191140000000000 0.216180000000000 0.220240000000000 0.229880000000000 0.238260000000000 0.240500000000000 0.214040000000000 0.231560000000000 0.227140000000000 0.242100000000000 0.222260000000000 0.230520000000000 0.226700000000000 0.237560000000000 0.243520000000000 0.234780000000000 0.256800000000000 0.270580000000000 0.250420000000000 0.260040000000000 0.245800000000000 0.289660000000000 0.235840000000000 0.276020000000000 0.262040000000000 0.267260000000000 0.276280000000000 0.258820000000000 0.273060000000000 0.284220000000000 0.253720000000000 0.243200000000000 0.280240000000000 0.272280000000000 0.286400000000000 0.295460000000000 0.272200000000000 0.279260000000000 0.287300000000000 0.260500000000000 0.273020000000000 0.270620000000000 0.284100000000000 0.293940000000000 0.291520000000000 0.270320000000000 0.337980000000000 0.287880000000000 0.315980000000000 0.301700000000000 0.320640000000000 0.302260000000000 0.342520000000000 0.284940000000000 0.323200000000000 0.328140000000000 0.332280000000000 0.340940000000000 0.345260000000000 0.341740000000000 0.327940000000000 0.317620000000000 0.332200000000000 0.330540000000000 0.325120000000000 0.341880000000000 0.366960000000000 0.350380000000000 0.356400000000000 0.331960000000000 0.337860000000000 0.343540000000000 0.291600000000000 0.358760000000000 0.340480000000000 0.359220000000000 0.391100000000000 0.331060000000000 0.351360000000000 2.30403345706940 2.58294073407173 2.58252196060896 2.46260883173227 2.49649519561768 2.34493639903545 2.43887108397007 2.35836091778994 2.56127216559529 2.31343037407875 2.30341100191832 2.30315941853285 2.40915726998806 2.26684129122972 2.22854928326130 2.17484806720495 2.27165951039314 2.33679404134870 2.63663573566079 2.21499631760359 2.27634981605291 2.22423972139359 2.17898286499023 2.15965188021898 2.23706752499938 2.15205995868683 2.14242945144296 2.20432278037667 2.34539556793332 2.20229324579597 3.08870125625372 2.08535062055826 2.18629155718327 2.12313241969705 2.21572318946958 2.09823822740316 2.19951685590744 2.22639669905424 2.21786008534431 2.05185532943845 2.48449608939171 2.30864981649101 2.34107716530681 2.11923110361099 2.30847922790229 2.04276615212560 2.09200612814307 2.05339681418061 2.07550545091808 2.32013278304338 2.24261995757639 2.11376671018124 2.24699458668590 2.20619229155838 2.09894527001858 2.15184423955798 2.01848260437727 2.06588567929626 2.05491635250628 2.28502274921656 2.11908894898891 2.12042603582919 2.03952727789223 2.28185465949535 2.04183200688839 2.08976939432263 2.50489575515747 2.20024360282660 2.25615783748686 2.30589702999949 2.33929013067067 2.37101616728783 2.17821436372280 2.43110886326909 1.95825491402864 2.55302719432026 2.01404658394039 2.07794829551101 2.00870409385979 2.12540909683317 2.08437894823730 2.10572141258478 2.21717954049557 2.18214925168216 2.02124524503589 2.40908848293304 2.07087317122400 2.14133017167866 2.07867014306545 2.21111452931643 2.19940865734041 2.69027976357460 2.26184977896929 2.26365538262367 2.53550740220368 2.12581349619567 2.10129890293598 2.14015233008921 2.16859523135632 2.11730523330390 2.13241523301780];
data2=[0.0982000000000000 0.100000000000000 0.100000000000000 0.100000000000000 0.141300000000000 0.101500000000000 0.129400000000000 0.115200000000000 0.132400000000000 0.114400000000000 0.134700000000000 0.182400000000000 0.141300000000000 0.201100000000000 0.210100000000000 0.174600000000000 0.182800000000000 0.193100000000000 0.183200000000000 0.201800000000000 0.214600000000000 0.227100000000000 0.187400000000000 0.211500000000000 0.215100000000000 0.225700000000000 0.234500000000000 0.236300000000000 0.210700000000000 0.228300000000000 0.224000000000000 0.236900000000000 0.220100000000000 0.223000000000000 0.223500000000000 0.232200000000000 0.234500000000000 0.231800000000000 0.249000000000000 0.261300000000000 0.242800000000000 0.254000000000000 0.239800000000000 0.282600000000000 0.232100000000000 0.269600000000000 0.256900000000000 0.256000000000000 0.269900000000000 0.252900000000000 0.266900000000000 0.278400000000000 0.247200000000000 0.235000000000000 0.271800000000000 0.266100000000000 0.285000000000000 0.288100000000000 0.265900000000000 0.270400000000000 0.279200000000000 0.250200000000000 0.267100000000000 0.265900000000000 0.278300000000000 0.290200000000000 0.285600000000000 0.262000000000000 0.332500000000000 0.282600000000000 0.309300000000000 0.295500000000000 0.313200000000000 0.292900000000000 0.336000000000000 0.273000000000000 0.318900000000000 0.315100000000000 0.322900000000000 0.333300000000000 0.341600000000000 0.329600000000000 0.317300000000000 0.307300000000000 0.324600000000000 0.325400000000000 0.316700000000000 0.332700000000000 0.360000000000000 0.337400000000000 0.350500000000000 0.326000000000000 0.333500000000000 0.334900000000000 0.284300000000000 0.349300000000000 0.331500000000000 0.345800000000000 0.376400000000000 0.324700000000000 0.341200000000000];
plot(N,(data2), '--k*',...
'LineWidth',1,...
'MarkerSize',6,...
'MarkerEdgeColor','k',...
'MarkerFaceColor',[0.5,0.5,0.5]); % TDD
hold on;
%data3=[0.0982000000000000 0.0999000000000000 0.133900000000000 0.175800000000000 0.216600000000000 0.219100000000000 0.224400000000000 0.240900000000000 0.295400000000000 0.314800000000000 0.284200000000000 0.342000000000000 0.354500000000000 0.361700000000000 0.390500000000000 0.379200000000000 0.361800000000000 0.424200000000000 0.459400000000000 0.496200000000000 0.387000000000000 0.462200000000000 0.517300000000000 0.516900000000000 0.529900000000000 0.523200000000000 0.575100000000000 0.570900000000000 0.549700000000000 0.570600000000000 0.582900000000000 0.583600000000000 0.596300000000000 0.614400000000000 0.549900000000000 0.583100000000000 0.590000000000000 0.601600000000000 0.617500000000000 0.624000000000000 0.625500000000000 0.600400000000000 0.629400000000000 0.649500000000000 0.639700000000000 0.661700000000000 0.664700000000000 0.644000000000000 0.652200000000000 0.620900000000000 0.652700000000000 0.663700000000000 0.674800000000000 0.662200000000000 0.616800000000000 0.688200000000000 0.661500000000000 0.675000000000000 0.604100000000000 0.685700000000000 0.656300000000000 0.694000000000000 0.684800000000000 0.650900000000000 0.690500000000000 0.696000000000000 0.707500000000000 0.706000000000000 0.670100000000000 0.687400000000000 0.684600000000000 0.695100000000000 0.704800000000000 0.713100000000000 0.712300000000000 0.709200000000000 0.703000000000000 0.687700000000000 0.708000000000000 0.719000000000000 0.713300000000000 0.720400000000000 0.700800000000000 0.715100000000000 0.698700000000000 0.693900000000000 0.708200000000000 0.711500000000000 0.712600000000000 0.686700000000000 0.724500000000000 0.708800000000000 0.706900000000000 0.712300000000000 0.707300000000000 0.712300000000000 0.717000000000000 0.683200000000000 0.711000000000000 0.710000000000000 0.703600000000000 0.0962800000000000 0.0999000000000000 0.132720000000000 0.178980000000000 0.223620000000000 0.222100000000000 0.227780000000000 0.245720000000000 0.300780000000000 0.321240000000000 0.292180000000000 0.356020000000000 0.370360000000000 0.371160000000000 0.396400000000000 0.388400000000000 0.372200000000000 0.430760000000000 0.481560000000000 0.507440000000000 0.403300000000000 0.478260000000000 0.537560000000000 0.530020000000000 0.546800000000000 0.541420000000000 0.597220000000000 0.597700000000000 0.569420000000000 0.593540000000000 0.603240000000000 0.616880000000000 0.627100000000000 0.650900000000000 0.579080000000000 0.608580000000000 0.612240000000000 0.630340000000000 0.658580000000000 0.664040000000000 0.657380000000000 0.632820000000000 0.674780000000000 0.686380000000000 0.685200000000000 0.711860000000000 0.715700000000000 0.693400000000000 0.702700000000000 0.664440000000000 0.711400000000000 0.723520000000000 0.738860000000000 0.719400000000000 0.672460000000000 0.759800000000000 0.727420000000000 0.739660000000000 0.659940000000000 0.755760000000000 0.728160000000000 0.767180000000000 0.765640000000000 0.724080000000000 0.778240000000000 0.770500000000000 0.794360000000000 0.794180000000000 0.752620000000000 0.772200000000000 0.776880000000000 0.787480000000000 0.807500000000000 0.815940000000000 0.819140000000000 0.821060000000000 0.810640000000000 0.785560000000000 0.820340000000000 0.830580000000000 0.822920000000000 0.831040000000000 0.815060000000000 0.841140000000000 0.811940000000000 0.817120000000000 0.831180000000000 0.834780000000000 0.846060000000000 0.801980000000000 0.849240000000000 0.841660000000000 0.840600000000000 0.838480000000000 0.835300000000000 0.848980000000000 0.857040000000000 0.799880000000000 0.855100000000000 0.856380000000000 0.850860000000000 2.30403345706940 2.30247331855774 2.29206799002171 2.22138480513334 2.17030496577740 2.14932985656023 2.17292123672724 2.10440733092546 2.05782185929298 2.03673820112944 2.05462464496136 1.88216099623203 1.81909628403664 1.84865675983787 1.71930885638356 1.74371968320370 1.77456330724716 1.64088080756903 1.45924052950501 1.39191162580252 1.72287043940544 1.47140950268865 1.30046321342587 1.34413053021550 1.28831927713990 1.31471152837157 1.14929039076209 1.15198232666373 1.22942819116235 1.13631409095645 1.13110593016624 1.09689207472205 1.06355274133444 1.00326429331183 1.23257367498934 1.12906173848629 1.10530750162661 1.05543933474422 0.974079709241390 0.963176962854266 0.978003551692963 1.06407500924468 0.941690696873069 0.905565619340539 0.901800774917603 0.833073854821920 0.822191414062977 0.891876123768091 0.861502855923176 0.975717334531546 0.826373370716572 0.798985124896169 0.759595058500171 0.809250582645536 0.952899924238920 0.699983941748738 0.804553416114450 0.748832114275694 0.962462495083213 0.719030100390315 0.786734273561239 0.684091330285668 0.689533563066721 0.805235302097201 0.648054553921223 0.671210459069610 0.605958068572879 0.600356252956092 0.715270331913829 0.671395148705244 0.655545575120449 0.621452955785692 0.574328052828908 0.551872626140118 0.543848036614060 0.536929290278554 0.566539987967908 0.636952204911113 0.546297250326574 0.511446171325445 0.531345062197447 0.509428885094821 0.543033683468401 0.494568289033175 0.560318581708670 0.547666536503434 0.514744578185082 0.503186425477564 0.463938360048234 0.606174906817675 0.463111603249311 0.478287227110267 0.489765724906027 0.493406685999632 0.496092984946072 0.468117912388742 0.445120768805295 0.653751816623509 0.446505204291642 0.438260396280587 0.458316633860320];
data3=[0.0982000000000000 0.0999000000000000 0.133900000000000 0.175800000000000 0.216600000000000 0.219100000000000 0.224400000000000 0.240900000000000 0.295400000000000 0.314800000000000 0.284200000000000 0.342000000000000 0.354500000000000 0.361700000000000 0.390500000000000 0.379200000000000 0.361800000000000 0.424200000000000 0.459400000000000 0.496200000000000 0.387000000000000 0.462200000000000 0.517300000000000 0.516900000000000 0.529900000000000 0.523200000000000 0.575100000000000 0.570900000000000 0.549700000000000 0.570600000000000 0.582900000000000 0.583600000000000 0.596300000000000 0.614400000000000 0.549900000000000 0.583100000000000 0.590000000000000 0.601600000000000 0.617500000000000 0.624000000000000 0.625500000000000 0.600400000000000 0.629400000000000 0.649500000000000 0.639700000000000 0.661700000000000 0.664700000000000 0.644000000000000 0.652200000000000 0.620900000000000 0.652700000000000 0.663700000000000 0.674800000000000 0.662200000000000 0.616800000000000 0.688200000000000 0.661500000000000 0.675000000000000 0.604100000000000 0.685700000000000 0.656300000000000 0.694000000000000 0.684800000000000 0.650900000000000 0.690500000000000 0.696000000000000 0.707500000000000 0.706000000000000 0.670100000000000 0.687400000000000 0.684600000000000 0.695100000000000 0.704800000000000 0.713100000000000 0.712300000000000 0.709200000000000 0.703000000000000 0.687700000000000 0.708000000000000 0.719000000000000 0.713300000000000 0.720400000000000 0.700800000000000 0.715100000000000 0.698700000000000 0.693900000000000 0.708200000000000 0.711500000000000 0.712600000000000 0.686700000000000 0.724500000000000 0.708800000000000 0.706900000000000 0.712300000000000 0.707300000000000 0.712300000000000 0.717000000000000 0.683200000000000 0.711000000000000 0.710000000000000 0.703600000000000];
plot(N,(data3), '-.hr',...
'LineWidth',1,...
'MarkerSize',6,...
'MarkerEdgeColor','r',...
'MarkerFaceColor',[0.5,0.5,0.5]); %NOMA
set(gca,'XMinorTick','on','YMinorTick','on');
grid on;
TextFontSize=18;
% LegendFontSize = 18;
XT = linspace(0, numel(data1), 4);
xticks([XT(1) XT(2) XT(3) XT(4)])
xticklabels(['0','1000','2000','3000']);
set(0,'DefaultAxesFontName','Times',...
'DefaultLineLineWidth',1,...
'DefaultLineMarkerSize',6);
set(gca,'FontName','Times New Roman','FontSize',TextFontSize);
% set(gca,'FontSize',30);
set(gca,'FontSize',18);
XT = linspace(0, numel(data1), 4);
xticks([XT(1), XT(2), XT(3), XT(4)])
xticklabels({'0','1000','2000','3000'});
% xtickangle(45)
xlabel('Global iterations')
ylabel({'Bandwidth utilization (kbits/ms/MHz)'},'FontSize',18)
legend('FDD','TDD','NOMA','FontSize',15)
hold off;
  6 Commenti

Accedi per commentare.

Più risposte (1)

Voss
Voss il 5 Feb 2023
I think it's working. You want xticks at 0, 1000, 2000 and 3000 iterations, but your data has only 101 elements, so you only see the xtick at 0.

Categorie

Scopri di più su Resizing and Reshaping Matrices in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by