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

Solved


Area of a Square
Inside a square is a circle with radius r. What is the area of the square?

mer än 5 år ago

Solved


Negative matrix
Change the sign of all elements in given matrix.

mer än 5 år ago

Solved


Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

mer än 5 år ago

Solved


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

mer än 5 år ago

Solved


Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

nästan 6 år ago

Solved


Check if number exists in vector
Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

nästan 6 år ago

Load more