how can write an m-file function that takes a single argument(i​nteger),co​mputes the factorial then returns the answer?

조회 수: 1 (최근 30일)
.

채택된 답변

David Barry
David Barry 2016년 12월 21일
function out = myFactorial(in)
out = factorial(in);
end

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by