Sums of Distinct Powers
You will be given three numbers: base, nstart, and nend. Write a MATLAB script that will compute the sum of a sequence of both ...
7年以上 前
解決済み
Five-dimensional maze
*Description*
The traditional maze is 2-dimensional: the navigator can move in the positive or negative directions along two ...
7年以上 前
解決済み
Give the Shortest Path Through The Maze
*Description*
The purpose of this problem is to give the shortest path through a maze. The maze will be provided in a codifie...
7年以上 前
解決済み
Group-wise Euclidean distance
*Input*:
* *x* —— An array of size *n-by-d*, where each row vector denotes a point in a d-dimensional space;
* *g* —— A gro...
7年以上 前
解決済み
5th Time's a Charm
Write a function that will return the input value. However, your function must fail the first four times, only functioning prope...
7年以上 前
解決済み
The 5th Root
Write a function to find the 5th root of a number.
It sounds easy, but the typical functions are not allowed (see the test su...
7年以上 前
解決済み
Find common elements in matrix rows
Given a matrix, find all elements that exist in every row.
For example, given
A =
1 2 3 5
9 2 5 9
3 2 5 9
...
Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so:
x = [1 2 3 4]
Commas are optional, s...
7年以上 前
解決済み
Times 2 - START HERE
Try out this test problem first.
Given the variable x as your input, multiply it by two and put the result in y.
Examples:...
7年以上 前
解決済み
N-Dimensional Array Slice
Given an N-dimensional array, _A_, an index, _I_, and a dimension, _d_, return the _I_ th elements of _A_ in the _d_ dimension.
...