MATLAB: I want factorial matrix i want to create a matrix which includes all numbers from 1 to n. n is given by user so i don't know n. In other words a matrix which i want to create must include n! numbers. n, n-1, n-2… n-(-n-1). Best Answer Did you look up factorial in the help?>> n = input('Enter n : ')Enter n : 8n = 8>> output = factorial(n : -1 : 1)output = 40320 5040 720 120 24 6 2 1 Related SolutionsMATLAB: Error when calculating factorial C=factorial(m)/((factorial(n)*factorial(m-n));You are opening two parentheses, but closing only one in the denominator MATLAB: Matrix generation 1 to n*n or interval reshape(1:n^2,n,n).' Related QuestionSimple Recurrence in MatlabRepeat an element in a vector
Best Answer