Solved

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

mer än 2 år ago

3D sinus imaginary part
This will get you started [x,y]=meshgrid(-1:.1:1,-6:.1:6); z=x.*sin(y); surf(x,y,z)

mer än 2 år ago | 0

| accepted

Solved

Edges of a n-dimensional Hypercube
Return the number of edges on an <http://en.wikipedia.org/wiki/Hypercube _n_-dimensional hypercube> (with an integer n &ge; 0). ...

mer än 2 år ago

Solved

Return the first and last character of a string
Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...

mer än 2 år ago

Solved

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

mer än 2 år ago

Solved

Length of a short side
Calculate the length of the short side, a, of a right-angled triangle with hypotenuse of length c, and other short side of lengt...

mer än 2 år ago

Solved

What percentage?
Calculate the output c as the percentage of a on b for given a and b.

nästan 3 år ago

Solved

length of a vector
Find twice the length of a given vector.

nästan 3 år ago

Solved

Change matrix to vector
Vector is a matrix whose size is 1 x n or n x 1. Change matrix to vector. x = 4 3 5 1 ...

nästan 3 år ago

Solved

Factorize THIS, buddy
List the prime factors for the input number, in decreasing order. List each factor only once, even if the factorization includes...

nästan 3 år ago

Solved

y equals x divided by 2
function y = x/2

nästan 3 år ago

Solved

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

nästan 3 år ago

Solved

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

nästan 3 år ago

Solved

only input
Return the output without writing any code into the function.

nästan 3 år ago

Solved

Find the nearest prime number
Happy 5th birthday, Cody! Since 5 is a prime number, let's have some fun looking for other prime numbers. Given a positive in...

nästan 3 år ago

Solved

MATLAB Basic: rounding II

nästan 3 år ago

Solved

Matlab Basics II - Count rows in a matrix
Write a function that returns that number of rows in a vector or matrix x example: x = [1; 2; 3] output = 3

nästan 3 år ago

Solved

Remove the Zero
Given an array n, remove all zeros

nästan 3 år ago

Solved

Perfect Square or not
find Given input x is perfect square or not,if yes then output y=1.else y=0

nästan 3 år ago

Solved

Y=X
Given an input variable x, output a variable y that is equal in value to x. Example: Input x = 1 Output y is 1 Inp...

nästan 3 år ago

Solved

factorial of a number x
Factorial of a number x

nästan 3 år ago

Solved

Matlab Basics II - squares
Write a function that takes matrix A, and squares each element in the matrix example: A = [1 2 3] output = [1 4 9]

nästan 3 år ago

Solved

kmph to mps
convert kilometer per hour to meter per second

nästan 3 år ago

Solved

Back to basics 6 - Column Vector
Covering some basic topics I haven't seen elsewhere on Cody. Given an input vector, output true or false whether it is a colu...

nästan 3 år ago

Solved

Number of digits in an integer
Specifies how many digits in a given integer. Example: in=100 ==> out=3

nästan 3 år ago

Solved

Square a Number
Given an input x, return y, which is equal to the square of x.

nästan 3 år ago

Solved

What number has this problem?
This problem is added because it is problem number *???* in the "Community" problems section. <http://www.mathworks.de/matlab...

nästan 3 år ago

Solved

Matlab Basics II - Minimum
Write a function that returns the minimum of each ROW of a matrix x example: x = [1 2 3; 4 5 6]; output [1;4];

nästan 3 år ago

Solved

Will there be a new leader?