Solved


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

ungefär 5 år ago

Answered
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)

ungefär 5 å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). ...

ungefär 5 å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...

ungefär 5 å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 5 å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 5 år ago

Solved


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

mer än 5 år ago

Solved


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

mer än 5 å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 ...

mer än 5 å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...

mer än 5 år ago

Solved


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

mer än 5 år ago

Solved


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

mer än 5 år ago

Solved


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

mer än 5 år ago

Solved


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

mer än 5 å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...

mer än 5 år ago

Solved


MATLAB Basic: rounding II
Do rounding nearest integer. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 9

mer än 5 å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

mer än 5 år ago

Solved


Remove the Zero
Given an array n, remove all zeros

mer än 5 å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

mer än 5 å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...

mer än 5 år ago

Solved


factorial of a number x
Factorial of a number x

mer än 5 å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]

mer än 5 år ago

Solved


kmph to mps
convert kilometer per hour to meter per second

mer än 5 å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...

mer än 5 år ago

Solved


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

mer än 5 år ago

Solved


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

mer än 5 å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...

mer än 5 å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];

mer än 5 år ago

Solved


Will there be a new leader?
Simply answer the title.

mer än 5 år ago

Solved


Who invented zero?
We know the importance zero in computer science, mathematics... but who invented zero? Clue: He was the first in the line ...

mer än 5 år ago

Load more