matlab问题求大神解决 20
A=[0.50,0.41,0,0.37,0.40,0.72,0.72,0.43,0.57,0.38,0.98,0.50];B=[0,0.50,0.50,0.51,0.50...
A=[0.50,0.41,0,0.37,0.40,0.72,0.72,0.43,0.57,0.38,0.98,0.50];
B=[0,0.50,0.50,0.51,0.50,0.24,0.24,0.10,0.01,0.50,0.41,0.80];
for x=0:0.01:1
for y=0:0.01:1
for k=1:12
d1(k)=max(A(k)-x,B(k)-y);
d2(k)=max(1-A(k)+x,B(k)-y);
d3(k)=max(1-A(k)+x,1-B(k)+y);
d4(k)=max(A(k)-x,1-B(k)+y);d=[d1(k),d2(k),d3(k),d4(k)];
z(k)=min(d);
end
s(100,100)=sum(find(z<=0.05));
end
end
m文件中写入xlswrite('zlg',s)
为什么文件名为zlg的excel中全是0,感觉没有循环
(ps:此为99年数模钻井问题第一问程序,可是有问题) 展开
B=[0,0.50,0.50,0.51,0.50,0.24,0.24,0.10,0.01,0.50,0.41,0.80];
for x=0:0.01:1
for y=0:0.01:1
for k=1:12
d1(k)=max(A(k)-x,B(k)-y);
d2(k)=max(1-A(k)+x,B(k)-y);
d3(k)=max(1-A(k)+x,1-B(k)+y);
d4(k)=max(A(k)-x,1-B(k)+y);d=[d1(k),d2(k),d3(k),d4(k)];
z(k)=min(d);
end
s(100,100)=sum(find(z<=0.05));
end
end
m文件中写入xlswrite('zlg',s)
为什么文件名为zlg的excel中全是0,感觉没有循环
(ps:此为99年数模钻井问题第一问程序,可是有问题) 展开
2个回答
东莞大凡
2024-08-07 广告
2024-08-07 广告
OpenCV标定板是东莞市大凡光学科技有限公司在相机标定中常用的工具。它通常由黑白格点按一定规则排列在平面上组成,如棋盘格或圆形格等。在相机标定时,将标定板置于不同位置和姿态下拍摄图像,利用OpenCV库中的函数检测标定板上的角点或圆心,进...
点击进入详情页
本回答由东莞大凡提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询