Solved


Back to basics 21 - Matrix replicating
Covering some basic topics I haven't seen elsewhere on Cody. Given an input matrix, generate an output matrix that consists o...

6 years ago

Solved


Who knows the last digit of pi?
There is only one man who knows the last digit of pi, who is that man? Give the name of that man, who, by popular believe, can ...

6 years ago

Solved


matlab indian players
answer is one of the indian matlab player(just for fun dont take serious)

6 years ago

Solved


Rotate a Matrix by 90 degrees
Rotate a Matrix by 90 degrees Example: If the input is: X = 1 2 3 4 5 6 7 8 9 ...

6 years ago

Solved


Determine Whether an array is empty
Input a matrix x, output y is TRUE if x is empty, otherwise FALSE.

6 years ago

Solved


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

6 years ago

Solved


The sum of the numbers in the vector
eg. [1,2,3]---->SUM=6

6 years ago

Solved


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

6 years ago

Solved


multiply by three
Given the variable x as your input, multiply it by 3 and put the result equal to y. Examples: Input x = 2 Output y is ...

6 years ago

Solved


Transpose
Write a MATLAB script in order to convert a random length row vector (v) into a column vector.

6 years ago

Solved


Add two numbers
Add two numbers (For beginners)

6 years ago

Solved


Matlab Basics II - Free Fall
An object freely falling from rest under gravity covers a distance x given by: x = 1/2 gt^2 write a function that calculat...

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

6 years ago

Solved


Number of Horns on a unicorn!
Calculate the number of horns on a *unicorn*! And I'm talking about a unicorn with not more than one horn on it!

6 years ago

Solved


Find out value of sine given by degree.
Find out value of sine given by degree. If theta=30, it's value must be 0.5.

6 years ago

Solved


Given area find sides
In a right angle triangle given area 'A' one arm=x, another arm=2x then find the value of x. For example, area A=400 then ...

6 years ago

Solved


Sum of diagonal of a square matrix
If x = [1 2 4; 3 4 5; 5 6 7] then y should be the sum of the diagonals of the matrix y = 1 + 4 + 7 = 12

6 years ago

Solved


Equal to their cube
Tell me three real numbers that are equal to their cubes?

6 years ago

Solved


find the maximum element of the matrix
for e.g x = [1 2; 3 4] y = 4

6 years ago

Solved


Create a vector
Create a vector from 0 to n by intervals of 2.

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

6 years ago

Solved


Square the input
Given a scalar or vector x, return the square of each element. Example x = [7 2] answer = [49 4]

6 years ago

Solved


The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".

6 years ago

Solved


find radius of cone
if Slant height of Cone(I)& hight of Cone(H) given then find radius of the Cone(R) for example I=5,h=4 then the ans R=3;

6 years ago

Solved


Rotate a Matrix
Input a Matrix x, Output y is the matrix rotating x 90 degrees clockwise

6 years ago

Solved


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

6 years ago

Solved


Min of a Matrix
Return the minimum value in the given matrix.

6 years ago

Solved


Inner product of two vectors
Find the inner product of two vectors.

6 years ago

Solved


What is Sum Of all elements of Matrix
Given the matrix x, return the sum of all elements of matrix. Example: Input x = [ 1 2 0 0 0 0 6 9 3 3 ] ...

6 years ago

Solved


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

6 years ago

Load more