if statement "not enough input arguments." error
9 ビュー (過去 30 日間)
古いコメントを表示
Its a mapper function and i dont know where i went wrong.
function Mapper(data, ~, intermKVStore)
Healthy = 0;
Dead = 0;
Vaccinated = 0;
if data{:,:} == "Healthy"
Healthy = Healthy + 1;
elseif data{:,:} == "Dead"
Dead = Dead + 1;
else
Vaccinated = Vaccinated + 1;
end
add(intermKVStore,"Healthy",Healthy);
add(intermKVStore,"Dead",Dead);
add(intermKVStore,"Vaccinated",Vaccinated);
end
0 件のコメント
回答 (1 件)
Star Strider
2021 年 2 月 14 日
I have no idea what you intend, however the add function is likely not appropriate here. Consider simply concatenating instead.
0 件のコメント
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!