Home > other >  Matlab and a cumulative function, when you pick up the minimum value of variable problem. Function f
Matlab and a cumulative function, when you pick up the minimum value of variable problem. Function f

Time:10-28

You greatly, I want to ask a took the minimum accumulative function, x (1), the value of x (2), but now an error
I don't think for a long time to understand what left and right sides, beg you teach greatly, the following is the code
A=[9.08304 e-06
1.0719 e-05
1.03485 e-05
1.39805 e-05
1.41988 e-05
1.43738 e-05
3.02467 e-05
3.05519 e-05
2.88175 e-05
2.98161 e-05
2.99163 e-05
2.51716 e-05
2.99348 e-05
3.73563 e-05
3.85825 e-05
3.46999 e-05
0.00006
5.92859 e-05
6.05514 e-05
4.95082 e-05
6.09037 e-05
4.5849 e-05
6.59665 e-05
7.26735 e-05
8.69993 e-05
5.38942 e-05
9.0079 e-05
8.74036 e-05
0.000112302
0.000112992
8.60866 e-05
8.87324 e-05
7.73286 e-05
9.83428 e-05
0.00010038
0.000101869
0.000169451
0.000105115
9.32897 e-05
0.000132309
0.000155726
0.000144192
0.000123105
0.000164526
0.000215021
0.000199756
0.000261111
0.000215768
0.000314948
0.000237097
0.000297101
0.000414809
0.001221953
0.002325];
B=[8.249468485
8.325307542
8.408937475
8.507923906
8.647148397
8.93276606
9.209197186
9.321029632
9.416447351
9.511909383
9.619282632
9.771298055
9.934195708
10.09636551
10.26280312
10.4241184
10.73393091
11.0883769
11.35197973
11.60349377
11.8658347
12.12935643
12.33020313
12.60764381
12.92511056
13.20195167
13.53837375
13.91332397
14.22753147
14.50524533
14.77203804
14.98931262
15.23308958
15.59154932
15.94142354
16.31399327
16.67099259
16.98450143
17.32953195
17.72889531
18.18565563
18.63759354
19.09069163
19.51201864
20.09281098
20.76053008
21.48746073
22.23980519
23.05727916
23.90178641
24.76397558
26.00285947
29.24242776
38.68443594];
F=@ (x) sum (abs (1.4379 * 10 ^ (2) * ((B - x (1))/(1 - B/(0.9 * x (2))). ^ 0.5). 3.13330 A * 10. ^ ^ (6)));
X0=[1500];
The options=optimset (' MaxFunEvals' 10000, 'MaxIter, 2 e3);
Fminsearch (f, x0, options);
Copy the code

Error: unable to perform the assignment, because the left side of the size of 1 - by - 1, on the right side of the size of 1 - by - 54,
Fminsearch error (line 200)
Fv (:, 1)=funfcn (x, varargin {that});
Shishi error (line 113)
Fminsearch (f, x0, options)
Beg you greatly
  • Related