留言板

QQ_761E52 2018-10-31 21:10

ckf 2018-10-10 18:34

zhangqinghao 2017-9-11 09:58
oopmatlab: map 和 array 适用与不同的场景， map显然不能用在矩阵的场景中

zhangqinghao 2017-9-7 10:38

mapping = @(x)(map_table(x));
Y = arrayfun(mapping,X);

marmy 2017-7-10 21:44

imagesc(x,y,I,[0 1]);

hyowinner 2015-6-14 23:32
freeflyboy 2015-4-24 14:53

gongjiangang 2014-9-25 15:45

gongjiangang 2014-6-13 17:49

kappa0517 2014-4-16 13:23

hexiancheng 2014-3-8 02:03

email:      hexiancheng.good@163.com
Gunker 2013-11-6 22:03

mxd271966940 2013-6-1 20:24

h786556915 2013-4-16 17:20
function f=mbhs3(x)
w=x(2)/x(1);y=x(4)/x(5);z=x(3);
m=(x(1)^3)/((x(6)-x(7))*(x(7)-14));
n=x(4)/(x(1)*(x(6)-x(7)));
p=12083.05*m*z*log(y)*((w-n*z*(y-1)/y)*(w-0.5*n*z*(y-1)/y)+1);
TR=((x(4)-x(5))/(x(5)*log(y))-1)*(x(2)/(x(4)-x(5))-z/(2*(x(6)-x(7))))*(z/(x(6)-x(7)))+x(1)*z/(2*x(5)*(x(6)-x(7)));
f=p*3*(1-y*14/x(4))/(3.14*0.69*(x(1)^2))+23076.92*TR;
function[c,ceq]=yueshutiaojian3(x)
w=x(2)/x(1);y=x(4)/x(5);z=x(3);
m=(x(1)^3)/((x(6)-x(7))*(x(7)-14));
n=x(4)/(x(1)*(x(6)-x(7)));
TR=((x(4)-x(5))/(x(5)*log(y))-1)*(x(2)/(x(4)-x(5))-z/(2*(x(6)-x(7))))*(z/(x(6)-x(7)))+x(1)*z/(2*x(5)*(x(6)-x(7)));
c(1)=1.5-w;
c(2)=w-2.5;
c(3)=1.2-y;
c(4)=y-1.3;
c(5)=150-12083.05*m*z*log(y)*((w-n*z*(y-1)/y)*(w-0.5*n*z*(y-1)/y)+1);
c(6)=12083.05*m*z*log(y)*((w-n*z*(y-1)/y)*(w-0.5*n*z*(y-1)/y)+1)-200;
c(7)=120-12083.05*m*(z-1.2)*log(y)*((w-n*(z-1.2)*(y-1)/y)*(w-0.5*n*(z-1.2)*(y-1)/y)+1);
c(8)=12083.05*m*(z-1.2)*log(y)*((w-n*(z-1.2)*(y-1)/y)*(w-0.5*n*(z-1.2)*(y-1)/y)+1)-180;
c(9)=90-12083.05*m*(z+2.4)*log(y)*((w-n*(z+2.4)*(y-1)/y)*(w-0.5*n*(z+2.4)*(y-1)/y)+1)*3*(1-y*14/x(4))/(3.14*0.69*(x(1)^2))+23076.92*(((x(4)-x(5))/(x(5)*log(y))-1)*(x(2)/(x(4)-x(5))-(z+2.4)/(2*(x(6)-x(7))))*((z+2.4)/(x(6)-x(7)))+x(1)*(z+2.4)/(2*x(5)*(x(6)-x(7))));
c(10)=12083.05*m*(z+2.4)*log(y)*((w-n*(z+2.4)*(y-1)/y)*(w-0.5*n*(z+2.4)*(y-1)/y)+1)*3*(1-y*14/x(4))/(3.14*0.69*(x(1)^2))+23076.92*(((x(4)-x(5))/(x(5)*log(y))-1)*(x(2)/(x(4)-x(5))-(z+2.4)/(2*(x(6)-x(7))))*((z+2.4)/(x(6)-x(7)))+x(1)*(z+2.4)/(2*x(5)*(x(6)-x(7))))-400;
ceq=[];
x0=[2.4,4,3,106,85,103,86];
[x,fval,exitflag,output]=fmincon(@mbhs4,x0,[],[],[],[],[],[],@yueshutiaojian4)