Resuelto


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

casi 4 años hace

Resuelto


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

casi 4 años hace

Resuelto


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

casi 4 años hace

Resuelto


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

casi 4 años hace

Resuelto


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

casi 4 años hace

Resuelto


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

casi 4 años hace

Resuelto


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

casi 4 años hace

Resuelto


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

casi 4 años hace

Resuelto


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.

casi 4 años hace

Resuelto


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

casi 4 años hace

Resuelto


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

casi 4 años hace

Resuelto


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

casi 4 años hace

Resuelto


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

casi 4 años hace

Resuelto


Mile to Kilometer
x is mile and y is km

casi 4 años hace

Resuelto


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

casi 4 años hace

Resuelto


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

casi 4 años hace

Resuelto


Watt
Ampere x Volt = Watt

casi 4 años hace

Resuelto


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

casi 4 años hace

Resuelto


Spherical Volume
Calculate the volume of a sphere.

casi 4 años hace

Resuelto


Volume of Cylinder
Find the volume of a cylinder

casi 4 años hace

Resuelto


Square root of number
Square root of given number.

casi 4 años hace

Resuelto


Square
square root of x

casi 4 años hace

Resuelto


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

casi 4 años hace

Resuelto


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

casi 4 años hace

Resuelto


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

casi 4 años hace

Resuelto


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

casi 4 años hace

Resuelto


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

casi 4 años hace

Resuelto


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

casi 4 años hace

Resuelto


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

casi 4 años hace

Resuelto


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

casi 4 años hace

Cargar más