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...
3 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...
3 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...
3 months ago
Solved
Combined Ages 2 - Symmetric, n ≥ 3
Following on <http://www.mathworks.com/matlabcentral/cody/problems/42382-combined-ages-1-symmetric-n-3 Combined Ages 2>, you wil...
3 months ago
Solved
Combined Ages 3 - Non-symmetric, n ≥ 3
Pursuant to the previous two problems ( <http://www.mathworks.com/matlabcentral/cody/problems/42382-combined-ages-1-symmetric-n-...
Nilpotent matrix
Check if matrix A is
<http://mathworks.com/ nilpotent>.
3 months ago
Solved
Projector Matrix
Write a function to determine whether or not the matrix is a projector. Projector matrices are defined as P^2 = P.
3 months ago
Solved
System of equations
Find a solution to a system of equations represented by a |n| by |n+1| matrix. For instance,
[ 2 0 4; => 2*x = 4
...
3 months ago
Solved
Weighted Convolution
Given two input vectors x = [x_1, x_2, ..., x_K] and y = [y_1, y_2, ..., y_K] of equal length, compute the weighted convolution ...