• Remix
  • Share
  • New Entry

on 6 Oct 2022
  • 5
  • 23
  • 0
  • 0
  • 279
% Reference: milan batista (2022). draw19 (https://www.mathworks.com/matlabcentral/fileexchange/71745-draw19), MATLAB Central File Exchange. Retrieved October 6, 2022.
drawInit
axis off
x0=0;y0=0;r=1;ht=1;th=-30
th = -30
p=drawSupport(2,r,x0,y0,th,'b')
p = struct with fields:
xk: [-1.8995 -0.6005 -1.2500 0] yk: [-1.7901 -2.5401 -2.1651 0]
c=drawCanoe(4,1.5,0,0,0,'-pos',4)
c = struct with fields:
xk: [11×1 double] yk: [11×1 double] color: 'k'
drawSpring(c.xk(6),c.yk(6),0.5,3,4,90,'-type','ext')
drawDonut(0.5,0.25,c.xk(6),c.yk(6))
scatter(p.xk(1),p.yk(1),50,'b','filled')
scatter(p.xk(2),p.yk(2),50,'r','filled')
grid on
Image
Remix Tree