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...
Nilpotent matrix
Check if matrix A is
<http://mathworks.com/ nilpotent>.
6ヶ月 前
解決済み
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...
6ヶ月 前
解決済み
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
...
6ヶ月 前
解決済み
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...
6ヶ月 前
解決済み
Is this matrix orthogonal?
Given a square matrix, a, determine whether it is orthogonal.
INPUT: a, a n x n matrix
OUTPUT: true or false
6ヶ月 前
解決済み
Orthonormal matrix
You decide whether any given matrix is an orthonormal matrix or not.
If each column in a matrix is perpendicular to the other...
6ヶ月 前
解決済み
Projector Matrix
Write a function to determine whether or not the matrix is a projector. Projector matrices are defined as P^2 = P.
6ヶ月 前
解決済み
Combined Ages 1 - Symmetric, n = 3
You have probably seen the common riddle wherein combined ages are provided and you must determine the individual ages. For exam...
Count the primes in Collatz sequences
Several Cody problems (21, 69, 42937, 44448, 44784, 52422) involve Collatz sequences. These start with a seed . If is odd, the ...
Determine whether a number is unprimeable
The number 204 is unprimeable because no single digit can be changed to make it prime. In contrast, the number 207 is not unprim...
6ヶ月 前
解決済み
List Honaker primes
The number 131 is the 32nd prime number. It is a Honaker prime because the sum of its digits (1+3+1) equals the sum of the digit...
6ヶ月 前
解決済み
Classify product/digit-sum sequences
Cody Problem 53120 involved a sequence in which a term is computed by multiplying the previous two terms and adding the digits o...