% 定义均值和协方差矩阵
mu = [0; 0];
Sigma = [1, 0.5; 0.5, 1];
% 生成正态分布数据
N = 1000; % 定义样本数量
Z = mvnrnd(mu, Sigma, N);
% 将正态分布数据转换为指数分布
X = exp(Z(:, 1));
Y = exp(Z(:, 2));
% 显示结果
disp(X);
2.2853
1.1009
2.8332
1.0745
1.6971
1.8905
2.4104
0.3466
2.6299
0.4657
3.6513
0.3592
0.4700
1.5804
1.2807
1.7025
0.5827
0.5310
1.8867
0.3952
0.3248
1.1286
0.0849
0.7082
0.4667
0.3046
1.5511
0.6611
0.2119
0.3210
0.5499
0.2098
0.6677
1.5881
1.8262
2.4613
2.8391
0.5199
1.4623
1.5361
0.2328
0.6609
1.5484
0.5703
1.6348
2.2458
0.7338
2.0165
1.3427
2.9187
2.5744
0.1931
4.6720
0.5601
2.6057
0.2646
2.1202
2.4794
15.7355
1.1673
0.8799
1.7038
0.3599
1.7550
0.2395
0.9446
1.0646
0.2551
0.7609
0.7735
3.8364
3.0889
0.6397
0.7814
1.3844
0.4605
2.5138
0.2177
0.7915
0.8739
2.4066
1.9960
0.7062
0.8105
0.5938
0.1134
5.7070
0.8129
1.9581
3.2030
0.2020
5.4405
0.8201
0.2886
2.0329
3.2314
0.7060
1.5060
0.4629
0.7348
2.0259
1.5796
5.3314
0.5139
3.9251
1.8562
1.1928
2.2373
1.1331
2.3729
2.3816
0.4344
0.7268
1.9810
0.9196
1.4159
0.0802
4.1871
0.9935
0.3106
0.6556
1.5493
0.2381
0.8772
1.2287
1.0592
0.5603
3.7122
1.8873
7.7336
3.2050
1.8202
2.1484
0.6918
1.7876
0.6196
1.0173
12.1990
2.7198
2.8139
0.1149
6.4390
0.8339
0.7245
0.8929
0.9357
0.8711
0.8033
0.4810
1.9371
0.6463
3.0792
0.3352
1.7787
1.5821
8.4856
0.6864
1.1760
0.1457
1.1215
1.3168
0.7790
1.4719
0.2262
1.5565
3.8856
0.7037
1.4934
0.5507
0.2695
0.4616
1.0616
0.1754
1.3472
0.1223
0.4629
0.7774
0.3670
1.4113
0.3621
1.9225
0.6656
2.2551
0.1346
0.2630
0.7584
1.5415
1.7303
0.5868
1.5640
0.8258
2.0954
0.4975
3.2084
0.4833
1.2753
0.6716
0.6486
0.8601
5.4495
0.9700
1.3847
0.3198
1.2842
0.6015
1.4047
5.6772
0.5209
2.4539
1.4928
0.8642
0.7325
0.7220
0.4480
0.7040
0.6062
0.9889
1.4141
0.2330
0.9885
0.8605
3.2514
1.0004
0.9537
0.7980
1.0761
2.7369
0.6229
3.2295
4.6703
0.7586
0.7399
0.4718
0.5734
1.2377
4.7386
3.6249
3.3574
0.6901
0.5304
0.1539
1.6470
2.2543
0.3314
3.0247
2.0854
2.6899
1.4091
4.0605
0.3629
2.4734
0.9761
2.1232
2.5056
0.4247
0.1135
0.5908
0.3488
0.2806
0.9197
1.6023
2.2096
3.3128
0.7701
1.2124
1.0719
0.4954
0.7482
2.4735
0.1128
1.5305
1.3738
1.0412
0.7764
1.0646
0.7679
2.5985
2.8614
1.2600
8.1785
1.6320
1.5529
0.2920
1.7310
1.9565
5.9029
7.1515
1.2980
2.0827
0.3763
1.4616
0.2131
0.2474
1.7620
1.8305
0.2227
2.1828
2.3714
0.6654
0.6262
0.3726
0.3162
0.7370
1.7010
0.9950
0.6843
2.0608
2.8071
0.3546
3.9521
0.5729
0.3526
3.8929
4.3801
0.5453
1.7758
0.5671
0.7860
1.6783
4.4850
1.6258
3.6585
0.0755
0.7477
3.2432
0.4747
0.6294
1.8249
4.1326
3.0423
1.8796
0.2285
0.5302
0.7297
1.3282
2.6108
6.1811
0.1611
0.6409
0.6017
0.9580
8.2302
2.9313
0.7473
5.4708
0.7620
0.9796
0.8784
0.8904
2.1382
0.8720
7.6201
4.9444
4.6440
0.5580
0.2739
0.3625
0.5367
0.1748
0.7220
2.0949
8.4535
1.5695
0.3936
0.2116
0.3335
0.8258
0.2182
0.5766
3.1850
1.8162
0.7400
5.9647
1.4561
0.7105
0.9094
0.4822
0.9462
0.1933
0.4376
3.1048
3.8243
0.6930
15.1477
0.2798
3.7555
0.3811
2.0134
1.9634
0.1325
0.1097
0.2852
3.8815
0.5261
0.8035
1.1471
0.6402
0.1677
2.8767
0.7685
0.8230
0.2850
1.2509
1.7280
0.9689
0.9920
0.2626
1.4608
1.9872
0.8834
0.5328
1.0903
0.2659
1.0871
0.6064
0.5798
2.3026
0.3604
4.1148
2.2559
0.0821
1.1838
0.8372
0.3436
1.8263
0.6286
1.0423
1.2370
6.6404
3.1933
2.0341
1.4607
0.5648
1.3205
1.3943
1.6686
0.4460
0.7740
1.6449
13.0713
0.9142
3.0894
1.1009
1.2865
1.5241
1.0546
0.9585
2.9086
1.9900
3.1517
0.3991
1.2538
0.1705
1.2206
0.4651
0.8443
0.7077
0.7027
0.1558
0.2543
0.9245
0.4671
3.0234
0.4647
2.7312
0.5316
0.3246
0.3063
1.3869
3.0489
2.2124
0.5831
10.4119
1.7998
0.2604
7.3226
0.6754
3.8546
1.0121
0.4936
5.0919
1.1383
0.2580
0.9320
2.8945
0.7667
0.6293
0.5467
1.1095
0.2095
2.6215
1.8603
1.0880
1.4150
2.3455
0.9912
1.8446
0.4723
2.4714
4.1867
0.2633
1.5474
0.3800
2.0355
1.2730
2.5271
1.1122
0.8548
3.0603
1.0177
1.5808
0.3064
0.3357
0.5013
1.2138
6.0114
0.4416
1.8897
1.9356
0.9372
2.3440
0.7666
1.5991
1.2015
1.0962
5.9055
1.8265
0.5198
1.5801
0.3113
0.3531
1.3086
0.4234
0.9631
1.3636
1.2586
1.2002
0.7292
0.4882
1.2993
1.7253
1.8130
0.7841
0.6144
6.5338
0.5985
0.8527
0.2278
0.5821
0.2591
1.6479
1.1223
1.8573
0.3374
0.5328
1.1065
1.0644
1.3746
1.9667
1.9368
4.0335
22.2845
0.9266
1.2759
0.8964
0.7222
1.2566
1.4523
0.7454
6.0217
0.2070
0.1900
5.2988
0.1814
1.1945
0.6845
0.9208
3.5813
0.3236
0.8985
1.6494
0.2952
0.1704
0.7368
0.4171
1.6309
2.1212
0.1423
1.1076
0.6537
0.7605
3.9174
2.0113
0.2367
0.2435
0.1643
1.8108
1.3542
2.2255
0.8719
0.6485
0.2162
1.3706
0.6327
0.1874
1.0477
0.1678
0.8155
0.4891
0.9025
2.2690
3.9695
6.8997
1.5235
1.8355
3.1027
4.7303
1.8055
0.6881
0.0914
2.5560
0.6912
2.9967
3.0906
0.8584
3.9451
0.6638
2.5758
0.5483
0.9442
3.0198
1.2002
2.6278
0.2826
0.3825
1.2658
1.6838
0.9580
0.6591
2.2538
0.5361
0.1582
0.8223
1.1234
1.1472
0.4412
1.3710
1.5457
0.4495
3.2502
0.5642
1.8234
1.5736
0.9262
0.4196
0.8187
0.6397
2.1248
2.1854
0.9409
1.5560
1.4300
3.4058
1.1814
0.6086
1.8528
0.8925
0.4994
1.8440
2.2048
0.2058
0.5908
1.7562
0.5496
1.0810
0.7814
0.9320
9.1024
1.4738
1.6588
2.7692
0.6787
1.3090
2.4075
0.7738
0.8903
2.4566
0.5700
0.8337
1.4453
4.7239
0.8830
0.7332
1.2965
1.1799
1.6058
3.0718
0.7997
0.2698
0.4862
0.2017
1.0902
0.9424
4.1660
0.1518
2.6159
0.4050
2.8951
2.3178
2.5318
0.8977
2.0587
0.1772
1.5985
2.0477
0.4718
1.4321
1.0397
0.7117
11.1907
0.6004
2.2873
0.9495
0.3918
1.1385
0.7800
1.0659
1.8499
9.9762
1.3680
1.4258
8.3064
0.3878
0.5695
0.1536
3.5688
1.2661
2.3316
1.4610
3.5300
0.9403
1.0550
0.3090
0.1606
1.7360
0.4396
4.0050
2.0294
1.8800
1.5525
0.5285
10.3068
3.0577
0.7530
0.3817
0.3759
7.0733
6.4020
0.2119
3.8906
10.6680
2.5745
0.8179
0.4170
0.5524
0.1170
0.5673
0.3168
1.0754
1.3676
3.2994
0.5017
0.3960
0.7721
3.0044
1.4836
0.7419
1.9007
1.2295
0.5397
0.2014
0.6941
0.9848
0.2967
1.4525
7.1791
0.7304
1.4662
0.7044
0.9526
2.9590
0.3937
0.6795
0.8947
0.7590
8.1660
0.3504
0.1480
1.7936
9.1150
4.0963
0.4544
1.6037
3.5515
0.4333
0.5212
2.8120
3.6714
1.5925
0.4106
5.2623
0.2803
0.5582
4.8735
2.7204
3.8381
0.0668
0.5059
0.8171
2.4083
1.4715
3.5790
1.0576
0.5829
0.8729
0.6219
0.9193
0.2462
0.7045
0.9771
2.2770
0.7594
1.7578
2.7002
1.2441
0.4037
1.6583
0.6756
0.2498
0.1578
1.9651
0.3168
0.6496
1.7666
1.0151
0.6494
2.7415
0.8362
0.6455
2.0405
2.2536
0.5097
0.2642
0.2005
0.8597
2.1876
0.9001
1.5557
1.1366
1.8426
0.3333
0.8903
3.1967
2.7582
1.4736
4.1058
0.8129
1.7829
3.9382
0.7999
2.8469
0.4221
0.3115
4.1142
0.2200
0.9952
0.7310
3.4423
0.0721
3.3100
0.1349
0.6868
1.9047
0.7171
1.6068
0.5308
0.8803
0.2418
1.1905
7.3170
3.6167
1.1864
2.5044
1.5091
0.5802
0.3706
7.3853
3.5926
3.1066
1.1987
1.1441
0.3531
0.1767
0.6616
1.4020
1.2283
2.0778
1.2927
1.5918
0.8976
1.3457
3.4225
9.3813
0.9828
0.1793
2.0731
1.4869
2.1541
1.1317
2.8067
0.3854
0.1596
2.6748
1.3657
1.2371
0.3564
10.4899
0.1106
5.0253
0.3561
1.0213
1.9123
0.2595
0.3081
2.2981
0.2020
0.8120
0.4508
0.1694
4.4215
4.8913
0.2267
0.3049
1.8656
4.0785
0.4240
0.9220
0.8990
0.2833
0.8513
0.9600
1.0711
0.2254
1.6502
0.8997
0.7096
0.2810
0.5892
0.7294
1.1038
3.6058
0.5554
3.2866
1.2225
0.4457
0.6771
1.2273
0.6789
1.2014
2.2651
1.5231
0.6096
1.3926
0.3878
0.2304
0.6067
1.0473
0.5656
0.2179
2.4570
0.1857
0.4482
7.5196
0.7147
0.6009
0.8028
0.5799
0.7213
0.4273
3.0062
0.6090
2.7218
1.8218
2.3742
1.4069
0.4230
3.5327
0.6157
0.2515
0.7182
disp(Y);
1.2038
1.5743
4.8209
1.0925
1.3588
2.8725
1.1417
0.1506
1.4496
1.2394
6.8664
2.3271
1.4956
0.4594
1.3717
0.7990
0.8363
1.9421
6.3771
0.5527
0.1032
0.9240
0.3765
0.5438
0.6021
0.4208
7.6827
3.1979
2.3107
0.3041
0.5655
0.5979
1.6892
0.9517
3.9616
0.8869
0.9049
0.0966
1.2901
0.7899
0.6383
0.2056
0.4231
0.7051
0.7774
1.1975
1.7163
0.4731
0.2896
6.0791
1.5308
1.8736
2.0473
0.3143
4.0866
0.3228
1.2483
0.5682
3.7099
0.9486
0.8612
2.5349
0.8011
1.1923
0.5583
1.8219
4.2719
0.4071
2.1408
0.2273
0.8925
4.0019
0.2261
1.2195
1.0381
0.3331
1.1762
0.6678
1.0313
1.4626
1.0189
1.4184
4.7332
5.3105
0.1139
0.8531
2.2926
0.5931
7.5627
2.0179
0.1054
1.4030
1.0082
1.5748
2.0862
10.1203
0.3550
0.6653
0.1897
0.3835
1.3192
1.4989
1.9478
2.8711
4.1565
1.2950
0.3085
0.5605
1.4787
0.7822
2.0382
1.8430
0.7289
1.6707
2.8059
0.1985
0.1781
2.6311
0.7477
0.3684
0.9261
0.5952
0.2434
0.3023
1.9157
2.0513
0.0835
3.5033
1.0417
3.1880
5.9903
0.5679
0.8962
0.3941
3.9915
3.0669
3.0515
2.8923
1.0485
0.5350
0.6600
1.6365
2.9876
1.0625
1.7683
0.4668
1.6539
2.3503
0.8585
4.3944
1.2482
2.4430
0.4232
2.9306
0.9677
8.6683
2.3836
0.6275
0.4514
1.2786
2.4455
0.2857
6.7208
0.2365
1.5335
2.3927
0.9673
1.4094
0.7684
1.1314
0.2528
0.9914
0.1586
0.6367
0.2280
0.4143
1.0484
1.9402
2.3829
0.5134
0.9973
0.8696
2.0629
0.3085
0.2223
1.5736
2.0877
0.5717
0.9571
3.5957
2.7406
0.2694
1.3631
1.1077
0.2499
1.4075
0.5485
0.3301
2.3576
2.8787
0.7020
1.6107
0.6419
3.2086
0.3551
4.7685
7.5282
1.7411
1.9995
0.6062
6.1885
1.7059
2.0826
0.4504
0.5611
0.7124
1.6895
3.6521
0.4169
1.7163
0.4239
1.5403
0.7821
0.9789
0.8854
2.8005
1.7352
1.4069
1.3223
1.9953
1.0530
3.1016
1.1869
0.7667
5.2936
0.9313
2.4940
3.6619
2.0787
0.5696
0.9474
0.8764
0.3557
0.1586
0.8711
0.9813
2.1676
0.5299
2.7262
0.1657
1.2175
1.4806
2.6670
2.0004
0.6611
1.9082
0.5373
1.1676
0.2170
1.0855
6.4776
2.2637
1.6653
0.6123
0.4851
0.2084
1.1790
1.4340
1.8837
0.0976
1.3734
1.8722
2.5567
0.6143
0.4343
4.0046
0.5980
2.9630
0.6196
12.7422
1.2672
1.2826
0.1374
1.1716
0.3882
2.1028
2.7935
1.0403
0.9403
0.6089
0.4321
0.3144
0.2530
1.3742
2.0115
0.1700
2.1049
0.3886
0.3273
1.8169
0.1833
0.4485
1.4510
0.6552
0.8246
0.4195
0.4089
0.3968
0.1366
2.3980
2.4581
0.2190
2.1062
1.9429
0.1922
1.4688
1.0024
0.5598
0.7021
0.9924
2.7671
4.3999
0.2954
1.1505
2.0754
1.0512
1.6208
1.3731
2.3585
0.3126
2.9595
2.4805
0.8762
0.1812
1.1936
5.0770
0.8373
0.6427
1.6621
1.3563
0.4491
0.8521
1.8901
0.4099
3.3764
0.5940
0.1454
3.1591
1.4686
0.8070
0.9275
7.6896
3.2703
0.3340
0.8543
0.6682
0.1851
1.1277
0.3047
0.9090
5.2560
5.0876
1.1060
1.1064
0.2798
1.4847
0.9988
0.2329
0.1740
6.4967
3.1079
0.3849
17.6332
3.3802
0.5701
0.4297
0.1868
0.5717
0.5163
3.2047
1.8078
3.2216
1.0168
1.7412
0.3512
1.5341
0.8632
0.8881
2.3478
0.3261
0.2682
1.2347
1.4485
1.2585
0.6254
0.2715
0.4098
0.1865
1.9641
0.6924
1.7570
0.2076
0.5340
2.7333
1.4274
0.4352
0.2550
2.1049
2.8618
0.2454
0.2621
0.7479
0.7975
2.0313
1.1438
0.2707
1.5892
0.2440
1.1233
1.7431
0.0377
3.9666
0.9387
0.9686
0.4287
0.6826
1.8186
4.4515
1.2434
2.9737
0.2628
1.0715
1.7278
2.5970
0.7940
4.0458
1.0059
3.3115
4.7735
9.5621
2.7280
3.4862
10.3598
4.4304
2.1497
0.3008
2.5688
1.0235
5.3821
1.2616
0.4956
13.5094
0.5332
0.6951
1.0213
0.8206
0.2722
0.7525
0.2216
0.2115
1.4492
0.1606
0.4369
1.3980
0.2867
0.4606
0.8540
1.2403
1.8927
0.9856
3.3469
0.3240
3.7359
1.9048
0.9538
2.8797
0.7349
3.1145
0.8519
1.7562
1.7109
1.1609
0.4777
1.0263
2.5441
2.1277
1.7690
0.7445
1.8209
0.2476
1.5528
1.1396
0.5359
0.9382
0.5815
0.9226
0.5298
1.5710
3.7552
1.7939
0.5645
7.2691
1.8123
2.7447
5.0156
1.0414
0.4251
0.4826
1.1493
0.3256
3.1739
0.0894
0.2495
0.7875
0.8311
4.0575
2.0281
0.8067
0.6286
0.5945
2.3692
0.7579
1.4351
1.5757
0.8550
0.6023
2.7973
0.1060
1.4031
0.1305
0.4442
0.8334
0.4365
2.5800
2.9187
0.6170
0.5457
0.6451
0.7566
2.3650
1.2786
1.3332
1.4315
0.2394
2.5927
0.6640
0.9161
0.1437
0.6962
0.9365
0.9633
1.3854
2.6747
0.3169
5.4150
3.9908
5.2914
0.6363
1.8339
6.4219
1.9040
16.6772
3.0456
0.5011
1.5579
1.1315
1.1459
2.0920
0.1464
2.1488
0.0766
1.1506
3.9422
1.0384
2.7338
0.1637
1.1867
2.6774
0.7372
0.4078
10.3769
1.0929
0.2015
0.3131
1.3385
2.2385
1.8291
0.4098
5.0345
0.2446
0.7553
1.1712
1.2017
0.6651
0.9786
0.2488
0.1430
2.5502
4.1367
3.6244
0.3326
0.3607
0.3809
2.9359
0.4152
0.2968
0.1111
0.8140
0.3052
0.9698
1.0621
4.0226
5.7310
1.4565
2.3855
2.5747
3.4052
1.5271
1.4900
0.3348
2.8396
1.8722
2.0654
0.8339
0.2476
2.4916
1.2537
5.0636
0.5990
0.2791
0.2473
0.5529
2.7629
0.1969
1.9859
0.9655
1.2513
1.1271
9.6015
0.5666
0.8527
3.4970
0.3835
0.7317
2.5571
1.3600
0.7611
2.4251
0.6188
1.5869
1.1316
1.2916
1.3734
1.7937
0.4075
3.6472
1.8451
2.3257
3.4433
0.3014
1.0898
5.9795
11.1102
0.9330
0.7485
3.8497
0.5348
0.4548
2.7959
5.5892
1.0095
0.8429
0.9280
0.9317
0.6096
0.2379
1.1569
1.4252
0.8950
0.3902
1.8702
1.3039
1.4282
0.7809
0.6532
0.4725
1.5845
0.3722
0.3917
3.6286
8.2103
1.0526
1.8170
0.7004
2.3303
0.7200
5.3261
0.3822
1.0788
0.7015
0.3437
0.9236
0.4690
0.8684
0.9137
0.1007
0.2920
1.7758
0.5857
1.5829
2.0750
1.4404
0.0473
0.4454
0.9087
1.3213
0.9309
4.0546
0.4698
1.7498
0.2253
0.1958
0.3942
0.8731
1.2373
0.1284
1.0991
0.6846
2.4226
0.2205
0.7360
0.7199
0.5051
0.4685
1.0883
4.5216
3.9165
1.5620
0.5234
1.3617
0.6179
2.3481
1.9052
0.0303
0.5573
0.1424
3.7253
0.4516
0.9804
1.2591
1.3451
1.7181
1.1166
3.3613
1.7634
0.7944
0.9169
2.5747
0.7286
1.5686
2.0860
0.2358
0.3504
1.6821
0.5225
0.2406
0.9316
1.1631
2.9525
0.8348
0.4602
1.4646
0.2970
1.5887
3.7508
0.3963
0.4980
3.5828
2.3648
0.5115
0.1304
0.7532
0.5413
0.3276
1.3569
0.5457
1.8657
0.4133
2.7266
1.1578
1.1981
0.5113
0.5067
3.0271
0.4324
4.5535
0.2667
0.4142
1.2295
1.6720
1.8349
0.7753
2.6472
0.3283
2.9443
0.1340
1.0018
10.0496
1.1621
1.3053
7.0767
1.9317
1.2437
11.6877
2.2222
2.7561
0.2235
0.2843
1.2717
2.7217
0.8967
0.3557
1.5407
0.1883
1.2409
0.3470
0.2560
0.8368
0.8480
4.6870
1.5560
1.2900
1.9198
0.4637
1.9923
0.5045
4.0763
0.6925
0.8104
0.3155
0.6295
0.3067
2.6281
1.9543
0.0905
8.3741
4.2352
1.7430
1.2659
1.2084
0.7780
0.6323
0.4929
1.3105
0.2771
2.7837
1.4138
0.9314
0.6021
1.0379
0.5490
2.8082
0.6147
0.7249
0.7403
5.8874
0.2958
2.3460
1.1381
0.4395
1.7574
0.4289
1.5618
7.4581
0.6592
0.9942
0.5893
1.6322
0.3939
1.0420
0.2347
0.1377
0.1792
0.7068
0.8433
0.8067
1.0935
0.3783
4.1838
1.4679
1.1938
1.4060
4.8220
2.7634
1.1623
2.7168
6.9831
1.8729
1.8872
0.4623
0.5370
1.3038
0.2006
0.3581
0.8811
1.2622
0.4631
1.7810
0.7526
1.0103
0.4311
0.3821
1.4711
0.8596
0.3363
0.4922
0.2655
1.8702
0.1174
2.3385
0.6589
1.5770
2.7865
0.9142
6.8529
0.3890
2.3942
0.3067
0.6236
0.2540
2.7272
0.1287
1.5205
0.6616
3.9493
0.3946
0.4992
0.4940
1.1196
1.2111
1.0571
1.4668
1.1533
1.4733
1.5501
1.7372
1.3608
0.1598
0.2799
0.4250
0.5395
1.7306
0.4049
1.0869
3.2332
0.2819
0.1374
0.6712
1.0846
0.8401
1.0045
0.6440
0.5076
0.8714
0.4588
0.9443
1.1549
0.8265
0.2117
1.2633
0.3117
0.3618
1.0724
0.9460
0.9121
0.2281
0.5895
0.1197
0.6451
0.7047
0.9268
1.2778
3.3723
3.0573
0.6367
0.8677
0.4666
0.6818
0.3737
1.7195
1.9909
0.5688
0.7091
2.1348
0.6898
0.6478
0.8740
0.4940
0.1039
1.3866