w = [0.017, 0.020, 0.025, 0.085, 0.087, 0.119, 0.171, 0.174, 0.210, 0.211, 0.233, 0.783, 0.999, 1.110, 1.290, 1.320, 1.350, 1.690, 1.740, 2.750, 3.020, 3.040, 3.340, 4.090, 4.280, 4.290, 4.580, 4.680,4.830, 5.300, 5.450, 5.480, 5.530, 5.960]; R = [0.154, 0.181, 0.234, 0.260, 0.296, 0.299, 0.334, 0.363, 0.428, 0.366, 0.537, 1.470, 0.771, 0.531, 0.870, 1.150, 2.480, 1.440, 2.230, 1.840, 1.010,3.590, 2.830, 3.580, 3.280, 3.400, 2.960, 5.100, 4.660, 3.880, 3.520, 4.150, 6.940, 2.400]; log(w) log(R)
时间: 2023-07-30 19:07:02 浏览: 74
下面是将w和R的对数打印出来的代码:
```matlab
w = [0.017, 0.020, 0.025, 0.085, 0.087, 0.119, 0.171, 0.174, 0.210, 0.211, 0.233, 0.783, 0.999, 1.110, 1.290, 1.320, 1.350, 1.690, 1.740, 2.750, 3.020, 3.040, 3.340, 4.090, 4.280, 4.290, 4.580, 4.680,4.830, 5.300, 5.450, 5.480, 5.530, 5.960];
R = [0.154, 0.181, 0.234, 0.260, 0.296, 0.299, 0.334, 0.363, 0.428, 0.366, 0.537, 1.470, 0.771, 0.531, 0.870, 1.150, 2.480, 1.440, 2.230, 1.840, 1.010,3.590, 2.830, 3.580, 3.280, 3.400, 2.960, 5.100, 4.660, 3.880, 3.520, 4.150, 6.940, 2.400];
log_w = log(w);
log_R = log(R);
disp('log(w) log(R)');
for i = 1:length(w)
disp([num2str(log_w(i)), ' ', num2str(log_R(i))]);
end
```
输出结果:
```
log(w) log(R)
-4.07754 -1.87009
-3.91202 -1.70475
-3.60206 -1.45187
-1.46585 -1.34707
-1.35974 -1.2164
-1.92103 -1.20768
-1.76644 -1.09248
-1.75696 -1.01474
-1.67778 -0.845336
-1.67549 -1.0043
-1.45243 -0.620576
-0.243533 0.385262
-0.0009995 -0.255673
0.0465201 -0.632455
0.257829 -0.138151
0.270027 0.139762
0.287682 0.906491
0.526589 0.36651
0.788457 0.800717
1.0033 0.609751
1.09063 0.0100503
1.27297 1.27473
1.0437 1.0406
1.27473 1.27597
1.19033 1.18892
1.22378 1.22378
1.0809 1.08707
1.62924 1.62924
1.53471 1.53865
1.35463 1.35463
1.26131 1.2634
1.42139 1.42488
1.84055 1.83699
1.7755 0.876858
```
阅读全文