whats wrong with my code?
Mostrar comentarios más antiguos
i was trying to make a funtion for school and my teacher gave me a code that he used to make the funtion.
the code he used was:
function dx = colour_selection_2020f (t,x)
dx = [0];
% 'a' is the selection strength for colouration based on female preference
% 'b' is the selection strength based on predation pressure
% 'c' is the narrow sense haritability of colouration
a = .68;
b= -.71;
c=.0054;
dx(1) = (a*c)+(b*c);
and the code i used was: 

can someone please tell me whats wrong with it???
3 comentarios
darova
el 20 de Mzo. de 2020
Why do you think there is something wrong with it?
Jasleen Kahlon
el 20 de Mzo. de 2020
darova
el 21 de Mzo. de 2020
Filename and function name should be the same

Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!