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 ExchangeStartup 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