MATLAB: How can write an m-file function that takes a single argument(integer),computes the factorial then returns the answer functionm-file . Best Answer function out = myFactorial(in)out = factorial(in);end Related SolutionsMATLAB: How to pass function as argument ? Read about anonymous functions. f = @(x) 5*x^3-3*x^2+2*x-2 ; Any value can be evaluated using:f(1)f(2) MATLAB: Anyone can answer? Thanks k = importdata ('data.txt') ; Related QuestionCalling a function from s-function m-fileMatchfeatures give wrong answerI’m getting wrong answer
Best Answer