Problem 106. Weighted average
이전 댓글 표시
function y = weighted_average(x,w)
f=x.*y;
f=sum(f);
y=f/length(x);
end
is there any error. i submit and get WA(wrong answer).
채택된 답변
추가 답변 (1개)
VELDANDI THARUN
2020년 1월 10일
0 개 추천
function y = weighted_average(x,w)
y =(x*w.')/length(x)
end
카테고리
도움말 센터 및 File Exchange에서 Time Series Objects에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!