Not enough input arguments
Mostrar comentarios más antiguos
function fout=ff(pop)
fout=pop(:,1).^2+pop(:,2).*pop(:,3)+pop(:,4);
end
Where pop is an known 100*4 matrix
Respuestas (1)
Shashank Prasanna
el 17 de En. de 2013
function fout=ff(pop)
fout=pop(:,1).^2+pop(:,2).*pop(:,3)+pop(:,4);
end
>> pop = rand(100,4);
>> ff(pop)
This works perfectly fine for me.
How are you calling your function?
Categorías
Más información sobre Startup and Shutdown 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!