联系方式

  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-21:00
  • 微信:codinghelp

您当前位置:首页 >> Matlab编程Matlab编程

日期:2022-02-21 10:27

HW 8

1. For this problem, set your Matlab path to use the angdiff function from the text toolbox, not the

Matlab toolbox. Use Matlab to write your own drivepoint program using the start given in class. Show

your code. Show a plot of the path for combinations in the table below. You will have 2 plots. Copy

plots from Matlab, paste into a Word document, and adjust size to fit the two plots to a line. Adjust

your axes using the following Matlab command:

axis([min(xpath(:))-0.1*abs(min(xpath(:))) ...

max(xpath(:))+0.1*abs(min(xpath(:))) ...

min(ypath(:))-0.1*abs(min(ypath(:))) ...

max(ypath (:))+0.1*abs(min(ypath (:)))])

a)

[xgoal ygoal] [xinit yinit angint]

[5 5] [3 5 pi]

[3 5 –pi+0.01]

b) Provide a complete explanation why the paths are different. It may help to print out some variables

the first time through the while loop.

c) Show a plot of the path for combinations in the table below. Copy plots from Matlab, paste into a

Word document, and adjust size to fit the two plots to a line. Adjust your axes using the command given

in part a:

[xgoal ygoal] [xinit yinit angint]

[5 5]

[8 5 –pi+0.01]

[8 5 0]

[8 5 pi/2]

[8 5 -pi/2]

[0 0]

[4 -3 pi/4]

[4 5 0]

[-2 -3 pi/2]

[3 -6 -pi/2]


版权所有:编程辅导网 2021 All Rights Reserved 联系方式:QQ:99515681 微信:codinghelp 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。 站长地图

python代写
微信客服:codinghelp