Make the curves more smoother

1 view (last 30 days)
SIEF ADDEEN
SIEF ADDEEN on 27 Feb 2024
Answered: Mathieu NOE on 27 Feb 2024
this is the code that i used what is the command thats will make the curves more smoother
A=[-15
-14.8
-14.6
-14.4
-14.2
-14
-13.8
-13.6
-13.4
-13.2
-13
-12.8
-12.6
-12.4
-12.2
-12
-11.8
-11.6
-11.4
-11.2
-11
-10.8
-10.6
-10.4
-10.2
-10
-9.8
-9.6
-9.4
-9.2
-9
-8.8
-8.6
-8.4
-8.2
-8
-7.8
-7.6
-7.4
-7.2
-7
-6.8
-6.6
-6.4
-6.2
-6
-5.8
-5.6
-5.4
-5.2
-5
-4.8
-4.6
-4.4
-4.2
-4
-3.8
-3.6
-3.4
-3.2
-3
-2.8
-2.6
-2.4
-2.2
-2
-1.8
-1.6
-1.4
-1.2
-1
-0.8
-0.6
-0.4
-0.2
0
0.2
0.4
0.6
0.8
1
1.2
1.4
1.6
1.8
2
2.2
2.4
2.6
2.8
3
3.2
3.4
3.6
3.8
4
4.2
4.4
4.6
4.8
5
5.2
5.4
5.6
5.8
6
6.2
6.4
6.6
6.8
7
7.2
7.4
7.6
7.8
8
8.2
8.4
8.6
8.8
9
9.2
9.4
9.6
9.8
10
10.2
10.4
10.6
10.8
11
11.2
11.4
11.6
11.8
12
12.2
12.4
12.6
12.8
13
13.2
13.4
13.6
13.8
14
14.2
14.4
14.6
14.8
15
15.2
15.4
15.6
15.8
16
16.2
16.4
16.6
16.8
17
17.2
17.4
17.6
17.8
18
18.2
18.4
18.6
18.8
19
19.2
19.4
19.6
19.8
20
20.2
20.4
20.6
20.8
21
21.2
21.4
21.6
21.8
22
22.2
22.4
22.6
22.8
23
23.2
23.4
23.6
23.8
24
24.2
24.4
24.6
24.8
25
25.2
25.4
25.6
25.8
26
26.2
26.4
26.6
26.8
27
27.2
27.4
27.6
27.8
28
28.2
28.4
28.6
28.8
29
29.2
29.4
29.6
29.8
30
30.2
30.4
30.6
30.8
31
31.2
31.4
31.6
31.8
32
32.2
32.4
32.6
32.8
33
33.2
33.4
33.6
33.8
34
34.2
34.4
34.6
34.8
35];
B=[45.85665355
46.29873237
46.74141119
47.18301001
47.63204881
48.07712762
48.52388643
48.96620525
49.42412403
49.88132281
50.33504159
50.79080038
51.22459922
51.69067797
52.15603673
52.59151557
53.04475436
53.5143131
53.96935189
54.39679075
54.8655095
55.28214838
55.74906714
56.21814588
56.55342499
57.06102363
57.49410248
57.93150131
58.3845001
58.77017907
59.34929752
59.77577638
60.24749513
61.07225292
62.38708941
62.49448912
63.2512071
64.58812353
63.24064713
64.3387642
66.11715945
64.46344387
66.03711967
67.57671555
65.49688111
67.64967536
68.11371412
66.93039728
69.06987157
68.7567924
68.41455332
70.39826802
69.30315094
70.16834863
71.14538602
69.98522912
71.18846591
71.64710468
70.82246689
72.51698236
72.37874273
71.84834415
73.04198096
72.78026166
72.59918214
73.64941934
73.35602012
73.48357978
73.78357898
73.74973907
74.10949811
73.93405858
74.20681785
74.3755374
73.86613876
74.67877659
74.4496972
74.31805755
74.94229589
74.09509815
74.40541732
74.75905637
73.86853875
74.74585641
74.49361708
73.84261882
74.56717689
73.97209848
73.83793883
73.96105851
73.61089944
73.52353967
73.33502018
73.32890019
73.10474079
72.94142123
72.55142227
72.30242293
72.08558351
71.61542477
71.76842436
71.34794548
70.98674645
70.84034684
70.37126809
70.0679089
69.65391001
69.32799088
69.11079146
68.85963213
68.89695203
69.03771165
68.95779187
69.04611163
69.02919168
68.7941123
68.87619208
68.77275236
68.96619184
69.13575139
68.8706721
69.41835064
69.34251084
69.14667136
69.82106956
69.82478955
69.97778914
70.57382755
70.5570276
70.79954695
71.17466595
71.38910537
71.79890428
72.05774359
72.39686268
72.77270168
72.99722108
73.76425903
74.14717801
74.53741697
75.20821518
75.15709531
75.63637403
76.1334127
76.49593174
77.12929005
77.60196878
77.82828818
78.25008705
78.54492627
78.67332592
79.19928452
79.45404384
79.8806427
80.35524143
80.44884118
80.56092088
80.7793203
80.68092056
80.80272024
80.95127984
80.80752022
81.09419946
80.72484044
80.52276098
80.44932118
80.10744209
80.25840169
80.01000235
79.72728311
79.64124334
79.03728495
78.92580525
78.56052622
78.1219274
78.01644768
77.48652909
77.21760981
76.90381065
76.28833229
76.01029303
75.51397436
75.08869549
74.77861632
74.2243378
73.91929862
73.48369978
72.94634122
72.54386229
72.00098374
71.59982481
71.17526594
70.67942727
70.24142844
69.78938965
69.25635107
68.78487233
68.34327351
67.82523489
67.42911595
66.93987725
66.41355866
66.00543975
65.39932137
64.92328264
64.52896369
63.96832519
63.55432629
63.04672765
62.50684909
62.10701016
61.56401161
61.0823329
60.70361391
60.14657539
59.69921659
59.23325783
58.68761929
58.2721804
57.79182168
57.298143
56.90550405
56.38722543
55.89786674
55.48482784
54.98190919
54.56887029
54.14083143
53.6657527
53.26687377
52.78819504
52.31371631
51.89863742
51.42427869
51.03283973
50.60792087
50.1441221
49.74020318
49.2850444
48.84620557
48.48188654
48.04592771
47.66792872
47.2984497
46.84185092
46.47945189
46.08501294
45.64593412
45.30597502
44.93037603
44.53737708];
B1=[45.56672099
46.00447982
46.44259865
46.88599747
47.32975629
47.7731551
48.21847391
48.65827274
49.10275155
49.56007033
49.99566917
50.45622794
50.91306672
51.3676255
51.82266429
52.26186312
52.72446188
53.17254068
53.61977949
54.06065831
54.52193708
54.95069594
55.36841482
55.87529347
56.2009726
56.70293126
57.17513
57.49528914
57.99076782
58.4455666
58.9721252
59.33656422
59.87536279
60.62824077
61.84527753
62.13639675
62.55411563
64.26723106
63.09579419
63.44691325
65.77238704
64.25619109
65.15690868
67.31762291
65.17694863
66.84302418
67.91246132
66.42902529
68.53573966
68.39354004
67.87670142
69.87577608
68.8592588
69.62329676
70.67197396
69.45133721
70.69717389
71.10253281
70.41409464
71.98741044
71.82781087
71.39737202
72.49896908
72.26808969
72.13693004
73.08624751
72.87888806
72.92628794
73.28400698
73.28232698
73.52964632
73.43652657
73.78128565
73.69080589
73.45656652
74.25240439
73.74468575
74.01252504
74.29380428
73.45908651
74.18436458
73.94064523
73.51992635
74.40468399
73.61868609
73.63068605
73.98348511
73.33944683
73.48056646
73.36836676
73.1266874
72.99912774
72.91884796
72.82428821
72.6028888
72.4152093
71.97853047
71.8917707
71.44981188
71.30281227
71.27953233
70.7686937
70.63225406
70.27609501
69.88201606
69.53773698
69.155898
68.92129863
68.59825949
68.52709968
68.63809939
68.53621966
68.54833963
68.67565929
68.39330004
68.47885981
68.51353972
68.49445977
68.62657942
68.41981997
68.84029885
69.02005837
68.70061922
69.31069759
69.30913759
69.42637728
70.04233564
70.19221524
70.26589504
70.65313401
70.93993324
71.27041236
71.62189142
71.98033046
72.14173003
72.45696919
73.24416709
73.6143661
74.025605
74.62812339
74.76888302
75.13188205
75.63132071
75.95663984
76.6105181
77.22839645
77.395556
77.88911468
78.09503413
78.35339344
78.75863236
79.1179114
79.45055051
79.9804691
80.20138851
80.32198819
80.390508
80.57674751
80.55538756
80.75662703
80.57542751
80.88502668
80.6911072
80.41294794
80.29714825
80.018029
80.12566871
79.92874924
79.65706996
79.5304703
79.09655146
78.84155214
78.50567304
78.15119398
77.91083463
77.54111561
77.15063666
76.88915735
76.37303873
75.98279977
75.54768094
75.13176205
74.8105229
74.30208426
73.90320533
73.54740628
73.01040771
72.55320893
72.08221019
71.62033142
71.28481232
70.72117382
70.25233508
69.88489606
69.27409769
68.88697872
68.36462012
67.88738139
67.5485023
66.908784
66.54170498
66.04202632
65.43374794
65.04170899
64.50255043
64.08231155
63.63891274
63.01935439
62.61675547
62.14083674
61.60815816
61.19511926
60.68608062
60.23620182
59.77384306
59.22604452
58.80376565
58.30996697
57.83296824
57.37444946
56.92265067
56.4628119
55.93325331
55.50761445
55.05917565
54.60725685
54.20177794
53.69837928
53.29914035
52.85178154
52.32546295
51.94302397
51.48894518
51.05922633
50.65482741
50.16078873
49.75086982
49.32859095
48.87163217
48.51703312
48.10855421
47.6999553
47.30263636
46.8733975
46.51267847
46.10131957
45.68204069
45.33320162
44.94608265
44.57600364
44.21936459];
B2=[45.23388188
45.67032072
46.10003957
46.5386384
46.97075724
47.40887607
47.84039492
48.28355374
48.72659256
49.1600314
49.6083502
50.04790903
50.48806785
50.93866665
51.38290546
51.80746433
52.25614313
52.7152619
53.14834075
53.59641955
54.01089845
54.44901728
54.88593611
55.26957508
55.68561397
56.13705277
56.54229169
56.95989057
57.34832953
57.78308837
58.41284669
58.7076859
59.11028483
59.76092309
60.63752075
61.92739731
62.57983556
62.93335462
65.08638887
64.12099145
64.08007156
66.18510594
65.33034822
65.55342762
67.67526196
66.69210458
67.46886251
68.1849006
67.63290207
68.5190997
69.39449737
68.83553886
70.03949564
70.60577413
69.47261716
71.05793292
71.31281224
70.19729522
72.20944985
71.37581208
71.52149169
73.04560762
71.98073046
73.00276773
73.23292712
72.25900972
73.61596609
73.4262466
73.22788713
74.06572489
73.92940526
73.77736566
73.75060573
74.30968424
74.024325
73.82596553
74.72860312
74.03992496
74.17108461
74.67172327
74.14852467
74.31352423
74.19196456
74.00452506
74.01340503
74.07196488
73.9520852
74.04856494
73.98496511
73.36144677
73.57972619
73.3498068
72.90736799
73.1650073
72.86068811
72.52036902
72.49816908
72.28300965
71.84405083
71.63849137
71.2930123
70.87769341
70.73453379
70.37861474
70.2042552
70.03553565
69.47825714
69.16925797
68.94821856
68.61869944
68.82977887
68.99573843
69.01253839
69.35381748
69.46013719
69.52481702
69.76433638
69.69569656
69.53861698
69.60077682
69.84017618
70.13645539
70.44737456
70.51229438
70.52201436
70.75565373
71.07989287
71.43137193
71.8162109
71.94233056
72.07313021
72.5645289
72.80836825
73.27096702
73.59700614
73.82920552
74.27656433
74.68024325
75.19612187
75.88588003
76.20855917
76.59195815
76.99827706
77.00535704
77.74203508
77.97627445
78.55023292
79.15827129
79.18443122
79.82690951
79.7538297
79.97582911
80.57546751
80.52926763
81.17390591
81.05570623
81.07226618
81.31022555
80.92250658
81.2154258
80.86838673
80.92502658
80.97050646
80.59142747
80.53862761
80.05778889
79.97318912
79.7928296
79.46595047
79.43667055
78.79983225
78.79335227
78.26403368
77.85231478
77.65203532
76.9851971
76.95051719
76.36227876
75.92583993
75.63868069
74.8496828
74.80192293
74.20888451
73.7242058
73.42180661
72.74248843
72.58144886
71.99537042
71.37689207
71.09825282
70.45565453
70.10573547
69.62489675
69.0061784
68.68337927
68.09418084
67.59246218
67.25994307
66.59970483
66.163146
65.73894713
65.15946868
64.84674951
64.19491125
63.63043276
63.34483352
62.73247516
62.27515638
61.80439763
61.18615929
60.8811201
60.30980163
59.78444303
59.41016403
58.82924558
58.41128669
57.96992787
57.41756935
56.9880905
56.46753189
56.02617306
55.61397416
55.09305556
54.60897685
54.13557811
53.71005925
53.28286039
52.77934173
52.35142288
51.91534404
51.47626521
51.06646631
50.57734761
50.1344288
49.73074987
49.27955108
48.88931212
48.47315323
47.9997545
47.57699563
47.19731664
46.78559774
46.38587881
45.98159989
45.55848102
45.20592196
44.816883
44.39772412
44.01612513
43.65060611
43.28628708];
B3=[45.19964197
45.63488081
46.07551964
46.51099847
46.94311732
47.37775616
47.82655496
48.24367385
48.69535264
49.14571144
49.56703031
50.04918902
50.47494789
50.92242669
51.37806548
51.80514434
52.25178314
52.70010195
53.14170077
53.57177962
54.02069842
54.43625731
54.8507362
55.32005495
55.68161398
56.1254928
56.58077158
56.95913057
57.34552954
57.92560799
58.30744697
58.71868587
59.22412452
59.85208285
60.82528025
62.041597
62.47083585
63.7638324
65.09498885
63.72315251
64.8489895
66.33470554
64.96658919
66.47090517
67.59614217
66.80654428
67.72094184
68.10410081
67.84910149
68.77897901
69.21961783
69.04765829
70.58869418
69.85429614
69.70189655
71.80477093
70.10245548
71.11141278
72.18552991
70.74661376
72.57492887
72.15457
72.47244915
73.19004723
72.23904977
73.23012712
73.18620724
73.19388722
73.81248557
73.81524556
73.91040531
73.31892689
74.26416436
73.97172514
73.60704612
74.77908299
74.01252504
74.05860491
74.53704363
74.24112442
74.22948446
74.1758446
74.17308461
73.88796537
74.19564455
73.99596508
74.21952448
74.04324495
73.37760673
73.65960598
73.34664681
73.11504743
73.29648695
73.22844713
72.62112875
72.57228888
72.60804879
71.88337072
71.87833073
71.51173171
71.031253
71.05129294
70.64941402
70.5796942
70.281855
69.62473675
69.51661704
69.16213799
69.07705821
69.39937735
69.51433705
69.69253657
70.00165575
70.21897516
70.56601424
70.72345382
70.77217369
70.75585373
70.75729373
71.32513221
71.27149235
71.61817143
71.83933084
71.67277128
72.25344973
72.43404925
72.68664858
73.10136747
73.09332749
73.6135261
74.03160498
74.25936438
74.63856336
74.95920251
75.49356108
76.12019941
76.43363857
76.85351745
77.26499635
77.6950752
78.17015393
78.49331307
78.87203206
79.27835097
79.74994971
80.10130878
80.52838764
80.62162739
80.9521065
81.10582609
81.515505
82.00618369
82.24330306
82.53730227
82.51894232
82.61794206
82.88398135
82.68238188
82.9777011
82.74718171
82.85686142
82.65058197
82.26766299
82.25926301
81.96898379
81.97966376
81.5531849
81.31510553
81.08770614
80.66434727
80.40262797
79.9409892
79.61219008
79.27595098
78.76907233
78.49175307
78.04775426
77.55611557
77.21615648
76.67207793
76.3465188
75.81228023
75.28200165
75.01296236
74.42568393
73.97088515
73.43232658
72.84384816
72.56904889
71.91829063
71.46613183
71.09845282
70.40065468
70.06093559
69.39793736
68.91349865
68.57485956
67.84406151
67.56398225
66.95126389
66.33518554
65.9378666
65.25938841
64.92062931
64.40739068
63.74703245
63.39879338
62.79447499
62.27667637
61.83963754
61.22031919
60.83356023
60.34396153
59.73736315
59.33404423
58.77052574
58.25668711
57.8491682
57.29392968
56.83961089
56.3490522
55.79597368
55.39817474
54.91277604
54.40529739
53.9921385
53.5024198
53.055421
52.59750222
52.05318367
51.65478474
51.18570599
50.72130723
50.32674828
49.84110958
49.41883071
48.99787183
48.52471309
48.16423406
47.72779522
47.27107644
46.92007738
46.47835856
46.06219967
45.68552068
45.24872184
44.88248282
44.53316375
44.10020491
43.75172584
43.39652679];
B4=[45.10494889
45.53598774
45.96978658
46.40898541
46.84422425
47.27790309
47.71902191
48.16194073
48.5867396
49.02437843
49.48877719
49.92005604
50.35937486
50.80997366
51.26369245
51.6922113
52.13945011
52.61884883
53.03200773
53.46268658
53.89216543
54.37192415
54.74260316
55.176402
55.60888084
56.00559979
56.43699863
56.9005574
57.3097563
57.75831511
58.173154
58.59651287
59.1845113
59.64075008
60.33026824
61.70246457
62.42102265
63.09362086
64.8751361
64.02997836
64.08049822
66.26557239
65.26957505
65.4388946
67.71360852
66.69733124
67.44168925
68.0966475
67.69956856
68.35416681
69.05604494
68.89464537
69.95400254
70.40184134
69.26808437
70.96007985
71.09699949
69.94296257
72.26711636
70.99319976
71.48807844
72.76679503
71.75279774
73.1151541
72.67655527
72.31031625
73.53503298
72.72239515
73.44875321
73.73759244
73.77935232
73.49411309
73.52051302
74.29343095
73.32503354
74.08331151
74.52179034
73.44635321
74.40011067
74.11019144
74.03531164
74.14751134
73.96919182
73.82867219
73.74143243
73.84871214
73.79735228
74.00999171
73.5651529
73.19951387
73.43627324
72.88151472
72.95795452
72.99299442
72.65387533
72.28799631
72.33299619
72.027237
71.58299819
71.58743818
70.99115977
70.63188073
70.55436094
70.13508206
70.18452192
69.74928309
69.19248457
69.10080482
68.7346858
68.68908592
69.05448494
69.16848464
69.28956431
69.75564307
69.91716264
70.17348195
70.44888122
70.28268166
70.25880173
70.58904084
70.7563204
70.97039983
71.38211873
71.3151589
71.41931863
71.88743738
71.9540372
72.50651572
72.82559487
72.83507485
73.32419354
73.54775294
73.88999203
74.3512708
74.6132301
75.1005488
75.60274746
76.04854626
76.68214457
76.92694392
77.4212226
77.81050156
77.9819811
78.66777927
78.79029894
79.36509741
80.01285568
79.87569605
80.67345392
80.50173437
80.69625385
81.23481242
81.32205218
82.07025019
82.08321015
81.96321047
82.32224951
82.02501031
82.37756936
82.03881027
82.14860998
82.2509697
81.89925064
81.74709105
81.32913216
81.28605228
81.04545292
80.88897334
80.53917427
80.35053478
79.90509597
79.47609711
79.26789767
78.63537936
78.47601978
77.97154113
77.59138215
77.35774277
76.57438486
76.30354558
75.84358681
75.31354823
75.11350876
74.23175112
74.12831139
73.63223272
72.98147445
72.62363541
71.88119739
71.64359803
71.12387942
70.47336115
70.21056185
69.5199637
69.07932487
68.53800632
68.02560769
67.63212874
66.98113048
66.59305151
66.06721292
65.54677431
64.99633578
64.36657746
64.10149817
63.47701983
62.94746125
62.51174241
61.86458414
61.55690496
60.91982666
60.35330818
60.11210882
59.39355074
59.00691177
58.57047294
57.88419477
57.58419557
56.98323717
56.47071854
56.22039921
55.5136011
55.05076234
54.69460329
54.10156487
53.73208586
53.24908715
52.72708854
52.41544937
51.91169072
51.37973214
51.00389314
50.50709447
50.04101571
49.6702167
49.21433792
48.75821914
48.35022023
47.89410145
47.51226247
47.1251435
46.66734472
46.26894579
45.90654675
45.49854784
45.08670894
44.67115005
44.29891105
43.93183203
43.54963305
43.193234];
B5=[45.57280098
46.01151981
46.45239863
46.88955746
47.33115628
47.77851509
48.22647389
48.65799274
49.11051153
49.57863028
50.01218912
50.46290792
50.92694668
51.37214549
51.80690433
52.25834313
52.74902181
53.18834064
53.62069949
54.05593832
54.52813706
54.90793605
55.36285484
55.79125369
56.21893255
56.65357139
57.08473024
57.52488906
58.06332762
58.42956665
58.83792556
59.44536393
60.02160239
60.92111999
62.43515595
62.62991543
64.20707122
65.31010827
63.61139281
65.5633076
66.47458516
65.08282888
66.85366415
67.8827814
67.19026325
67.91230132
68.72325916
67.82854155
69.21825784
69.65817666
69.30237761
71.37885207
69.78093633
70.3166149
72.47288915
69.87153609
72.37376941
72.2267698
71.08329286
73.44080656
72.33128952
73.28240698
73.58528618
72.74060843
73.87364541
73.60448612
73.88660537
74.28092432
74.70368319
74.02112501
74.18372458
75.06956221
74.1380047
74.81792288
75.33296151
74.37056408
75.10820211
75.04736227
75.04328228
74.9978024
74.94044256
74.81816288
74.6639633
75.04304228
74.79140296
75.11588209
74.68736323
74.20556452
74.54780361
74.15372466
74.14868467
74.26988435
73.99904507
73.46636649
73.70540586
73.41956662
72.80792825
72.98828777
72.24020977
72.18860991
72.04977028
71.61009145
71.72997113
71.1424527
70.56849423
70.61985409
70.23357513
70.2429351
70.65837399
70.68021393
70.80693359
71.20137254
71.42697194
71.4424519
71.73033113
71.72649114
71.56197158
71.96817049
71.98689044
72.43364925
72.65840865
72.49664908
73.02536767
73.14104736
73.26500703
74.05220493
73.8365655
74.23016445
74.77100301
74.87960272
75.26792168
75.63404071
75.94075989
76.48651843
77.20615651
77.27671632
77.98075444
78.04903426
78.69103254
79.09303147
79.33615082
79.93530922
80.0915488
80.83734681
80.9532665
81.31926552
81.65718462
81.58182482
82.09734345
82.28094296
82.66026194
83.24274039
83.10726075
83.51393966
83.50421969
83.64497931
83.8006189
83.66309927
83.91893858
83.73833906
83.64137932
83.33910013
83.17002058
83.16102061
82.83594147
82.65534196
82.39074266
82.06278354
81.7767043
81.29550559
80.99346639
80.67426725
80.22534844
79.87710937
79.38991068
79.09423147
78.50443304
78.16207395
77.75095505
77.22751645
76.80055759
76.20931917
75.93067991
75.40040133
74.80520292
74.38544404
73.78616564
73.46768649
72.81044824
72.32552954
71.98545045
71.27013236
70.92393328
70.28469499
69.78249633
69.40941733
68.65797933
68.38678006
67.7727417
67.13878339
66.73858446
66.05590628
65.71798718
65.11762879
64.47407051
64.18847127
63.49415312
63.01163441
62.52455571
61.90463737
61.5935982
60.94331993
60.42852131
60.04392234
59.35788417
58.95420525
58.45296658
57.923648
57.50772911
56.90365072
56.47081188
56.04553301
55.46353457
55.03213572
54.57781693
54.10933818
53.67433934
53.13350079
52.67114202
52.23734318
51.73190453
51.30338568
50.87150683
50.40482807
49.97846921
49.52535042
49.1227515
48.69711263
48.22791389
47.83635493
47.42655603
47.00187716
46.59591825
46.1618794
45.78292042
45.39580145
44.97676257
44.60500356
44.22064459
43.85284557
43.4660866];
B6=[45.6397608
46.08039962
46.52019845
46.95759728
47.4006361
47.84187492
48.28251374
48.73143254
49.18275134
49.62699015
50.06546898
50.51846777
50.98742652
51.41642537
51.86558417
52.31126298
52.76006179
53.2046606
53.66593937
54.08065826
54.52813706
54.97177588
55.4144547
55.79785367
56.22565253
56.66737135
57.07081027
57.46128923
57.90360805
58.28232704
58.75524578
59.21064456
59.64060341
60.17244199
60.78000037
61.88699741
63.39695338
64.287591
65.90698668
66.93394394
65.22286851
66.55270495
68.84049885
66.45226522
68.73261913
70.18569525
68.1101808
70.05213561
71.08413285
69.45189721
71.31129225
71.63169139
70.66653397
73.52936633
72.39968934
71.97873047
75.04364228
71.59929148
73.90544532
75.1109621
72.44588922
75.92407993
74.81564289
74.3249642
76.36327876
74.90612265
75.79748027
75.94447988
75.80384025
76.25023906
76.43899856
76.69759787
76.07563953
77.15947663
76.06435956
76.56955821
77.40115599
76.19179922
77.41459595
76.92667725
76.58023818
77.08375683
76.86835741
76.65511798
76.58347817
76.85323745
76.23967909
76.85275745
76.69531787
75.98587977
76.15651931
75.89012002
75.54968093
75.69764054
75.78932029
75.03248231
75.18932189
74.96840248
74.1744846
74.48852376
73.77944566
73.4259266
73.50956638
72.79388829
72.93284792
72.74264843
71.76573103
71.99193043
71.5925715
71.28633231
72.11781009
72.08865017
71.9650505
72.53816897
72.33572951
72.21464984
72.48800911
72.09981014
72.16676996
72.81092824
72.62108875
73.13456738
73.07816753
73.03148765
73.58588617
73.47284648
73.97480514
74.19896454
74.15120466
74.7354831
74.96444249
75.24776174
75.52952098
75.90079999
76.19155922
76.67455793
77.21203649
77.41687594
77.90335465
78.27475365
78.55999289
78.86563208
79.29475093
79.54423026
79.96302915
80.43258789
80.44290786
81.09690612
81.00894635
81.20910582
81.65622462
81.80730422
82.40694262
82.4508625
82.44366252
82.63542201
82.68402188
82.50954235
82.77066165
82.57194218
82.75434169
82.57590217
82.09266346
82.24026306
81.76974432
81.86418407
81.62406471
81.23586575
81.21978579
80.55930755
80.40954795
80.05842889
79.54531026
79.44439053
78.7812723
78.62647271
78.15907396
77.63335537
77.28559629
76.76839768
76.46671848
75.91735995
75.44012122
75.07028221
74.60720345
74.1366847
73.53320631
73.11752742
72.66020865
72.14013003
71.72829113
71.18877258
70.76025372
70.22505515
69.62445675
69.3074176
68.66673931
68.20054055
67.79614163
67.18834326
66.7997843
66.12838609
65.59102752
65.30542829
64.60499016
64.20887121
63.71363254
63.11639413
62.74823511
62.11427681
61.63643808
61.25255911
60.62484078
60.21696187
59.75508311
59.15340471
58.71864587
58.21116723
57.73296851
57.33516957
56.77609106
56.29153236
55.86961348
55.34377489
54.90277606
54.45085727
53.9894585
53.54857968
53.07674094
52.6045422
52.11530351
51.68222466
51.2191459
50.77646708
50.40182808
49.91750938
49.47591056
49.09815156
48.61215286
48.21435392
47.82411497
47.35923621
47.00919714
46.60779821
46.14411945
45.7873604
45.37936149
44.97088258
44.63944347
44.24620452
43.86472554];
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
A1=[-15
-14
-13
-12
-11
-10
-9
-8
-7
-6
-5
-4
-3
-2
-1
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35];
C=[-5.635753243
-5.378965709
-5.24206134
-4.820077957
-5.306419693
-3.936044266
6.195384477
19.12252627
6.974676811
-13.1190422
-8.121209899
9.474782374
11.68712082
1.853313756
2.12728211
2.82662087
-1.116283786
6.025408423
11.68755954
8.88462657
4.484056509
9.648565155
31.36285737
50.66519337
68.712058
90.74610388
106.9908744
128.7448287
144.1995363
144.0919021
153.1469343
149.1205898
124.1876697
111.9188007
98.184439
79.03856019
71.88259575
66.10522444
59.05735964
55.14467502
50.33675407
44.68322996
38.99184135
34.12176944
30.43103032
28.83323271
25.66677473
20.58530356
19.11658012
17.48509106
15.74698474];
C1=[-5.604613014
-5.568154589
-5.158298136
-4.552161716
-5.277476644
-3.961524308
6.46388756
19.62998539
3.373369997
-14.33191744
-5.697022471
9.539378744
11.58722099
1.716754924
3.234898925
6.253870019
0.915941975
3.45373411
8.499941667
8.64374459
4.218174583
11.69885892
33.43605376
52.8744774
67.77228658
88.06145271
107.7199158
125.9194555
148.8840795
151.0556
150.2048513
142.4388183
119.1484505
108.6335584
96.54691312
79.55177781
72.80269399
68.03453103
58.45905693
52.73214349
47.88333731
41.51677261
37.22893405
35.82150101
31.85875546
25.68220454
22.55468235
21.79401785
20.01632408
18.02173636
16.27362284];
C2=[-5.853709002
-5.744493846
-5.681644533
-5.341333423
-5.891157689
-3.957164991
10.0439919
9.940345671
4.801402778
12.26964147
7.952246683
-5.517733181
-7.510994401
7.356867865
6.314024446
2.093029079
9.218719039
8.240014624
5.360437844
4.358816498
8.150643534
13.79171099
39.27582105
62.28977705
71.72083451
90.80276781
109.3768153
131.1387854
142.7600553
146.2229387
151.3818509
133.61234
109.4253931
99.69497986
86.55360403
71.90153335
67.1859406
64.08292533
56.98744363
51.57244606
47.25164824
41.44249737
33.80220557
29.92289339
27.62207651
24.55268241
20.72446222
17.72500874
17.07525434
14.82579519
13.32459381];
C3=[-5.849040029
-5.785188872
-5.346496799
-4.836988678
-5.987403621
-5.006506605
11.24030774
17.44722834
4.37769126
4.415324675
13.14875525
4.042793588
-5.994357865
-1.164560116
6.175823158
3.047844645
-0.62485396
5.203879339
6.538418463
4.095921773
3.402488895
23.20923712
56.50073509
71.16127184
78.18897386
98.33032177
118.5437265
133.6912162
143.0114438
146.3436865
146.1846433
139.0802445
117.7475553
96.95757441
82.69718326
72.83313609
65.18648166
57.73146931
51.36431819
45.18171443
40.03603551
36.88738482
33.64709694
30.41983184
26.57625003
21.66463837
17.47642809
15.26577661
14.56639759
16.01420022
14.57864921];
C4=[-5.76278912
-5.502043006
-5.400043327
-5.224988383
-5.941643696
-4.964597581
9.381152294
12.16418869
6.74697862
9.466498033
7.250354136
-3.053838477
-6.328160137
6.438658236
7.925040218
2.444923891
4.607781224
7.907676536
5.232001134
2.714623406
7.472154474
18.99986448
49.16966278
70.16254222
77.79671685
95.64582807
112.28478
132.0689985
145.6780602
144.4829694
146.1611125
139.6916944
116.0911604
99.03764953
84.60236887
71.81481971
67.3818138
59.96218122
49.96985976
45.84403796
41.603421
35.57693423
34.49262042
33.90460162
24.8089068
17.32748849
18.19638968
18.2078664
15.35446277
13.87503942
13.42757304];
C5=[-5.436548363
-5.463724131
-5.26547918
-4.650237203
-5.718049314
-5.212510529
11.39977165
26.56812625
7.852145137
-8.860207918
-11.52344764
2.051158136
12.2399909
2.80984016
0.078004879
7.228171617
14.07167841
6.287700338
4.112526625
6.539123583
5.352245448
26.55559976
57.42090496
72.91248412
86.10860469
98.12162441
114.3974973
134.108669
145.1704444
147.6292494
145.174077
135.4988567
113.8005836
95.1082745
82.54758608
71.63903161
62.78935045
59.7257034
53.95909499
43.9575315
39.80820612
37.25571652
28.80442465
25.05366388
25.28213565
20.84887028
17.402166
17.67647473
16.14147806
13.92326244
12.58694583];
C6=[-5.836675145
-5.677709439
-5.4259219
-5.223256923
-6.089431742
-5.983109816
4.71167083
16.90427252
34.0456916
17.00831798
-13.66546507
-13.72424012
5.867551253
19.3067561
6.864334222
1.349121153
9.804507798
10.15107088
3.461220503
4.400147849
11.2514045
23.46587901
41.2262568
58.85998917
74.33855933
94.56914366
113.8215187
127.7210014
140.6751317
143.5223611
142.1294533
135.6786854
115.6412847
98.43924021
86.69225397
74.95311578
65.94967258
60.61853171
56.19238065
49.98557204
42.44398766
36.91129727
32.87398141
31.60386123
29.47456098
23.68604898
19.73546299
19.12305045
17.23391399
15.07329282
13.95584184];
hold on
ylim([10 90]);
yticks(10:10:90);
plot (A,B,'LineWidth',1)
plot (A,B1,'LineWidth',1)
plot (A,B2,'LineWidth',1)
plot (A,B3,'LineWidth',1)
plot (A,B4,'LineWidth',1)
plot (A,B5,'LineWidth',1)
plot (A,B6,'LineWidth',1)
xlabel("Crank angle (°)");
ylabel("Pressure (bar)");
yyaxis right
ylim([-20 300]);
yticks(-20:20:300);
plot (A1,C,'K','LineWidth',1)
plot (A1,C1,'r','LineWidth',1)
plot (A1,C2,'b','LineWidth',1)
plot (A1,C3,'.','LineWidth',1)
plot (A1,C4,'G','LineWidth',1)
plot (A1,C5,'LineWidth',1)
plot (A1,C6,'LineWidth',1)
ylabel("Heat release rate (J/°CA)");
legend('40-D','B30','D60B30E10','DBEM10','DBEM15','40-DBME15','D60B30M10');
grid on
title('160 Nm');

Answers (1)

Mathieu NOE
Mathieu NOE on 27 Feb 2024
Hello
there are many options to choose from
one way is to use matlab's smoothdata
or this one (I like very much)
see example below on one of your data
figure
hold on
ylim([10 90]);
yticks(10:10:90);
plot (A,B,'LineWidth',3)
Bs1 = smoothdata(B,'gaussian',10);
Bs2 = smoothn(B);
plot (A,Bs1,'r')
plot (A,Bs2,'g')
legend('raw','smoothdata','smoothn');

Categories

Find more on Line Plots 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!