Using multiple functions in combination
1 次查看(过去 30 天)
显示 更早的评论
采纳的回答
dpb
2015-10-20
Looks to me like it would just be
ring(t,nstars,ringradius,npoints,R,r)
if you remove the lines within ring that redefine the input arguments ringradius and nstars (and any others I overlooked). star gets called within ring w/o any other effort required other than either being visible in MATLABPATH or an internal function within ring.m
function turtle=ring(t,nstars,ringradius,npoints,R,r)
t2=Turtle();
turnAngle=0;
for k=1:nstars
...
2 个评论
dpb
2015-10-20
Since we can't run your code a little tough to tell but...I wonder if there's an issue w/ Turtle in some context presumed to be shared somehow that isn't? Since we have no klew what's in there, it's just a guessing game...
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Calendar 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!