Basic Matlab Operation Bonanza
Given a horizontal array of numbers, perform the following operations, in order: transpose, flip matrix horizontally, flip matri...
nxn matrix with elements from 1:n^2
really simple once you see what the matrix is supposed to look like. i appreciate what seems to be a clever approach to solving ...
Roman to Integer Conversion
The idea behind this cody problem is to write a code that converts the Roman Numerals to Integers.
A numeral system known as R...
Primitive Root Modulo n
Given a positive integer n > 2, return a vector, v, of positive integers smaller than n that are primitive roots modulo n. If no...
Logistic map
The sequence defined by x_n = 4*r*x_{n-1}*(1-x_{n-1}) and a given 0 < x_1 < 1 turns each x_n into a polynomial of r.
Write a fu...
2年以上 前
解決済み
Bullseye Matrix with Zeros
Inspired by Problem 18, create a bullseye matrix with the addition of padding equal to 0 between concentric rings. Matrices are ...
2年以上 前
解決済み
Parametric Array
Create a row vector, 1xN (Integer, >1), such that
the mean of the vector is M (Real number) and the standard deviation of the ...
2年以上 前
解決済み
Rotation matrix of a sequence of 3D points
Given a sequence of rotation matrices Rotation_Matrix [3x3xN], and a sequence of 3D points [3x1xN], compute the [3xN] sequence i...
Snakes and Ladders: Variable Die
This problem is a sequal to Problem 59132 Snakes and Ladders: Average Number of Turns.
Instead of a 6-sided die, your function ...