1. Engineering
  2. Mechanical Engineering
  3. by matlab...

Question: by matlab...

Question details

by Matlab

Create a script that receives a positive integer as the input, and prints its Factorial as the output (Note: you will receive no credit if you use the factorial command) Create a script that receives any row matrix with positive integer elements as the input (suppose you have at least two elements in your matrix), and creates the output as a row matrix with only two elements, where the first element will be sum of all the evenly placed element of the input, and the second value will represent the sum of all the oddly placed elements of the input: Example: A [11,4,42,31,1] B-output [54,35]

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution