Solved


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

1 month ago

Solved


If-then-else
Complete the function below such that if the value of x is in the range 10 to 14, inclusive, the value 18 is assigned to y. Oth...

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

1 month ago

Solved


Matrix to column conversion
Given a matrix of any size, convert it into a column vector. e.g A=[10 20 30; 40 50 60] then, B = [10; 40; ...

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

1 month ago

Solved


Is it prime?
Given a number, check whether it is prime or not. If prime output is true, otherwise false.

1 month ago

Solved


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

1 month ago

Solved


Remove the middle element from a vector
Remove the middle element of a vector? *Example:* [1,2,3] should return 2 [1,2,3,4] should return 2 [] should return...

1 month ago

Solved


Check availability of a number in an array
An array is given A=[1 2 3 4 5 7 8 9 10]. Find whether the number n is present in given array or not. If the number n is prese...

1 month ago

Solved


Upper case and lower case!

1 month ago

Solved


ASCII Code
Using matlab, give the symbol that is associated with ASCii code 90.

1 month ago

Solved


Escape from Planet ....
Given a Planets mass M, and raduis r. Calculate the surface escape velocity and the escape velocity at height h. and the diff...

1 month 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

1 month ago

Solved


Output any real number that is neither positive nor negative
Output any real number that is neither positive nor negative

1 month ago

Solved


Is it a number?
Determine if input is numeric. If it is,output is 1; if it is not, output is 0.

1 month ago

Solved


Inverse of Hilbert matrix
Given a non-negative integer x, return the element-wise power of 2 of the inverse of Hilbert matrix.

1 month ago

Solved


Just another sum (JAS)
*Task:* Write a function that takes a vector X and returns the alternating sum of X: X(1)-X(2)+X(3)-X(4)+... *Example...

1 month ago

Solved


Return the middle element of an NxN square matrix where N is odd
Let's say you are given an NxN square matrix where N is always going to be an odd number: x = [ 1 2 3 4 5 6 7 8 ...

1 month ago

Solved


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

1 month ago

Solved


Volume and area of a sphere
Input(r) - radius Output([v,s]) - volume and area

1 month ago

Solved


Reverse a string
Reverse the given string. Example input = 'reverse' output = 'esrever'

1 month ago

Solved


How many solutions has this problem?
Guess, predict or calculate :-) (You will be scored by the accuracy). Update: <http://www.mathworks.co.uk/matlabcent...

1 month ago

Solved


Create cosine function out of sine
Please dont use cos(x) directly

1 month ago

Solved


Replace 0 to NaN!
In given matrix A=[1 nan nan; 2 2 nan; nan nan 1]; replace NaN to 0. Use matrix A as a input.

1 month ago

Solved


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

1 month ago

Solved


Is the input divisible by 3?
Return true if the input is divisible by 3 and false if not.

1 month ago

Solved


Make a 1 hot vector
Make a vector of length _N_ that consists of all zeros except at index _k_, where it has the value 1. Example: Input ...

1 month ago

Solved


multiple of nine?
Given a positive number n, return true if n is a multiple of 9 and false if not. Do not make the division and do not use functio...

1 month ago

Solved


Find the Pattern 1

1 month ago

Solved


Check if number is a square number
Test if integer i is a square number. Return logical true if it is.

1 month ago

Load more