Solved


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

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

5 years ago

Solved


Replacing a row
For matrix G=[1 2 3; 4 5 6; 7 8 9] Replace the 2nd row with 8s **remember to create matrix G

5 years ago

Solved


Replace multiples of 5 with NaN
It is required to replace all values in a vector that are multiples of 5 with NaN. Example: input: x = [1 2 5 12 10 7] ...

5 years ago

Solved


Sum of odd numbers in a matrix
Find the sum of all the odd numbers in a matrix. Example x = [2 3 5 7 1 4 11] y = 27

5 years ago

Solved


Speed of car
Calculate the Speed of car given its Distance travelled and time taken in x and y respectively

5 years ago

Solved


Square Diagonal
If n is the given number, then make a diagonal matrix of size 2*2 with the square of that number.

5 years ago

Solved


Remove and Sort
Given a randomized array n, sort it and remove all odd integers. n=5 y = [2 4]

5 years ago

Solved


Who has power to do everything in this world?
There is only one person who is older than this universe. He is Indian version of Chuck Norris.

5 years ago

Solved


Determine the square root
Determine the square root of the value the user has entered, n.

5 years ago

Solved


Flip the main diagonal of a matrix
Given a n x n matrix, M, flip its main diagonal. Example: >> M=magic(5); >> flipDiagonal(M) 9 24 1 ...

5 years ago

Solved


Generate the Matrix!
Given n, generate the following matrix: a = [ n n-1 n-2 ... 2 1; n-1 n-1 n-2 ... 2 1; n-2 n-2 n-2 ... 2 1;...

5 years ago

Solved


most frequent character
Obtain the most frequent character. For example, s='balaram'; output='a'; If there is a tie between letters, return t...

5 years ago

Solved


reverse string
input='rama' output='amar'

5 years ago

Solved


Sorted highest to lowest?
Return 1 if the input is sorted from highest to lowest, 0 if not. Example: 1:7 -> 0 [7 5 2] -> 1

5 years ago

Solved


Square root of a number
Write a code that will output the square root of x.

5 years ago

Solved


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

5 years ago

Solved


Area of a circle
Given the radius x, y would be the area of a circle. Pi = 3.1416

5 years ago

Solved


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

5 years ago

Solved


Where is she?
Given the numbers 12, 3, 6, 9 Tell where the girl is located. That is: Look to your 3 o'clock = look right Example ...

5 years ago

Solved


Guess
A random number between 1 and 10 is created for the variable y. Guess what its value is.

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

5 years ago

Solved


Close MATLAB with keyboard
Close MATLAB with keyboard without using mouse

5 years ago

Solved


Palindrome Check
Check whether the entire matrix is palindrome or not. Example matrix = [7 8 7] matrix_reverse = [7 8 7] So the mat...

5 years ago

Solved


Is It a Palindrome?
Given a string or array, determine if it is a palindrome.

5 years ago

Solved


Product of Array
Given an array of numbers. Get the product of the array.

5 years ago

Solved


Area of a circle
Find the value for area of the circle if diameter is given

5 years ago

Solved


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

5 years ago

Solved


How to find the position of an element in a vector without using the find function
Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for. Examples: fin...

5 years ago

Solved


Compare two input matrices
Check which input matrix has more elements. Return "1" if matrix A has more elements than matrix B. Otherwise return "0". Exa...

5 years ago

Load more