[x,y]=meshgrid(-2:0.1:2,-1:0.1:3);
z=100*(y-x.^2).^2+(1-x).^2;
figure(1);
mesh(x,y,z)
figure(2);
contour(x,y,z,20)
drawnow
hold on
plot(-1.2,2,'o');
text(-1.2,2,'start point')
plot(1,1,'o')
text(1,1,'solution')<i
MATLAB源代码-规划问题.zip
版权申诉
177 浏览量
2023-08-27
23:34:00
上传
评论
收藏 120KB ZIP 举报
![avatar](https://profile-avatar.csdnimg.cn/ace77722cc904668be9c7ee0feb247ba_dwf1354046363.jpg!1)
![avatar-vip](https://csdnimg.cn/release/downloadcmsfe/public/img/user-vip.1c89f3c5.png)
易小侠
- 粉丝: 6513
- 资源: 9万+
最新资源
- power-karpathy-test-gt.json
- tensorflow-gpu-2.8.2-cp38-cp38-win-amd64.whl
- sddfdsfdssdasd
- power-karpathy-val-gt.json
- power-karpathy-test.json
- EnviroSkyandWeather v2.1.4(u2017.1.2)真实动态天气系统包
- power-karpathy-train.json
- power-karpathy-train.json
- STM32CubeMx V6.0.0版本
- EnviroSkyandWeather v2.1.2(u2017.1.2)真实动态天气系统包
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback-tip](https://img-home.csdnimg.cn/images/20220527035111.png)