Create a Matrix of Zeros
Given an input x, create a square matrix y of zeros with x rows and x columns.
約4年 前
解決済み
First non-zero element in each column
For a given matrix, calculate the index of the first non-zero element in each column. Assuming a column with all elements zero i...
約4年 前
解決済み
Find parts of a circle.
Given radius (r) of a circle find the diameter (d), circumference (c), an area (a).
約4年 前
解決済み
Is this triangle right-angled?
Given any three positive numbers a, b, c, return true if the triangle with sides a, b and c is right-angled. Otherwise, return f...
約4年 前
解決済み
Remove NaN ?
input -> matrix (n*m) with at least one element equal to NaN;
output -> matrix(p*m), the same matrix where we deleted the enti...
約4年 前
解決済み
Remove multiples of N
in the vector x remove all multiples of N.
x = [1 2 3 4 5 6];
N = 2;
Then y = [1 3 5];
約4年 前
解決済み
Add the positive numbers
Add only the positive numbers of x
example:
x = [-2 -1 0 1 2 3]
the positive numbers are: 1 2 3, so their sum is 6
Sum of the Matrix Elements
Add up all the elements in a NxM matrix where N signifies the number of the rows and M signifies the number of the columns.
E...
約4年 前
解決済み
square root
Find the square root (y) of an input (x).