Effacer les filtres
Effacer les filtres

I cant find the error in there. can you help me

1 vue (au cours des 30 derniers jours)
Didem
Didem le 10 Jan 2017
Commenté : Didem le 10 Jan 2017
Undefined function 'reflect_collusion' for input arguments of type 'double'.
Error in odev (line 37) [x_coords,y_coords,stepsx,stepsy] =reflect_collusion(x_coords,y_coords,stepsx,stepsy,i,k);

Réponse acceptée

Stephen23
Stephen23 le 10 Jan 2017
Modifié(e) : Stephen23 le 10 Jan 2017
This might be a spelling mistake, perhaps you meant to write reflect_collision.
Otherwise you will need to make sure that there is a function with that name of your path:
which reflect_collusion
If there is none found then you either need to write it, or download it, or correct its name, or add its directory to the MATLAB path, or make the function name the same as the file name. MATLAB cannot use functions that it does not know about, so it is up to you to make sure that it knows where to find all functions that it needs to run your code.
  1 commentaire
Didem
Didem le 10 Jan 2017
I added to path then problem solved, thank you so much.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Downloads dans Help Center et File Exchange

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by