Using multiple functions in combination
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
edit
0 commentaires
Réponse acceptée
dpb
le 20 Oct 2015
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 commentaires
dpb
le 20 Oct 2015
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...
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Calendar dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!