해결됨

Return area of square
Side of square=input=a Area=output=b

11달 전

해결됨

Make a random, non-repeating vector.
This is a basic MATLAB operation. It is for instructional purposes. --- If you want to get a random permutation of integer...

11달 전

해결됨

Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

11달 전

해결됨

Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...

11달 전

해결됨

Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.

11달 전

해결됨

Find max
Find the maximum value of a given vector or matrix.

11달 전

해결됨

Get the length of a given vector
Given a vector x, the output y should equal the length of x.

11달 전

해결됨

Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

11달 전

해결됨

Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

12달 전

해결됨

Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

12달 전

해결됨

Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; ...

12달 전

해결됨

Length of the hypotenuse
Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<http://upload....

약 1년 전

해결됨

Is my wife right?
Regardless of input, output the string 'yes'.

약 1년 전

해결됨

Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

약 1년 전

해결됨

Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

약 1년 전

해결됨

Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

약 1년 전

해결됨

Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

약 1년 전

해결됨

Given a and b, return the sum a+b in c.

약 1년 전

해결됨

Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

약 1년 전

해결됨

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...

약 1년 전