Determine whether a number is practical
A number is practical if all smaller numbers can be written as a sum of the proper divisors of . The number 24 is practical bec...
7 months ago
Solved
Compute a determinant
Write a function to compute the determinant of an x matrix with diagonal entries equal to an integer and other entries equal ...
linear least squares fitting
Inputs:
* |f|: cell-array of function handles
* |x|: column vector of |x| values
* |y|: column vector of |y| values, same l...
7 months ago
Solved
Outer product of multiple vectors
In tensor algebra, it is often useful to define a tensor as a product of lower order tensors. Similarly, a multidimensional arra...