Not enough input arguments

function fout=ff(pop)
fout=pop(:,1).^2+pop(:,2).*pop(:,3)+pop(:,4);
end
Where pop is an known 100*4 matrix

답변 (1개)

Shashank Prasanna
Shashank Prasanna 2013년 1월 17일

0 개 추천

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?

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

질문:

2013년 1월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by