已解决


Rotate a matrix for 180 degree
Rotate a matrix for 180 degree for eg: x=[1 2 3 4] y=[4 3 2 1]

3 years 前

已解决


Find the nearest integer
Given a vector of integers and a real number find the closest integer. EX: >> a = [2 4 5 6 8 10]; >> b = 4.6; >> nea...

3 years 前

已解决


give nth decimal place of pi
max 15th place after the decimal point is ok for now

3 years 前

已解决


find whether it is prime or not
For a given number find if its prime

3 years 前

已解决


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

3 years 前

已解决


Polygon Interior Angle Sum
Given the number of sides of a regular polygon, find the sum of interior angles. Return 0 for input for which regular polygon a...

3 years 前

已解决


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

3 years 前

已解决


Create a Multiplication table matrix...
Create a product table in this format: P = [ 1 2 3 4 5; 2 4 6 8 10; 3 6 9 12 15; 4 8 12 1...

3 years 前

已解决


Find out sum of prime number till given number
Find out sum of prime number till given number Example, if number is 10, then answer must be 17.

3 years 前

已解决


Convert Kilometers to Miles
Convert kilometers to miles. Consider 1 km = 0.62 mile. Note: Don't use the '*' operator.

3 years 前

已解决


Areas
Given certain dimensions determine the area of that shape. If given only one value assume its the radius. Use round(x) to round ...

3 years 前

已解决


Perimeters/Circumference
Given an array. Determine whether the perimeter is of a circle, triangle or square. Then calculate the perimeter.

3 years 前

已解决


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

3 years 前

已解决


Mile to Kilometer
x is mile and y is km

3 years 前

已解决


Kelvin to Fahrenheit
You can find a doc about it in here => https://www.rapidtables.com/convert/temperature/how-kelvin-to-fahrenheit.html x is kelvi...

3 years 前

已解决


Bit to Gigabyte
1 bit = 1.25 × 10^-10 gigabytes | x is bit | y is gigabyte

3 years 前

已解决


Watt
Ampere x Volt = Watt

3 years 前

已解决


Percentage
There is x liter water and y gram => z is percentage of salt in water

3 years 前

已解决


Spherical Volume
Calculate the volume of a sphere.

3 years 前

已解决


Volume of Cylinder
Find the volume of a cylinder

3 years 前

已解决


Square root of number
Square root of given number.

3 years 前

已解决


Square
square root of x

3 years 前

已解决


Remove the two elements next to NaN value
The aim is to *remove the two elements next to NaN values* inside a vector. For example: x = [6 10 5 8 9 NaN 23 9 7 3 21 ...

3 years 前

已解决


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

3 years 前

已解决


Rotate matrix by -90 degrees
Rotate a Matrix by -90 degrees Example: X = 1 2 3 4 5 6 7 8 9 output = 7 4 ...

3 years 前

已解决


Convert degrees to radians
Given input in degrees, output to radians

3 years 前

已解决


find the surface area of a cube
given cube side length x, find the surface area of the cube, set it equal to y

3 years 前

已解决


Back to basics 12 - Input Arguments
Covering some basic topics I haven't seen elsewhere on Cody. Return a value equal to the number of input arguments to the fun...

3 years 前

已解决


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

3 years 前

已解决


Getting logical indexes
This is a basic MATLAB operation. It is for instructional purposes. --- Logical indexing works like this. thresh = 4...

3 years 前

加载更多