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.

Solved

Square a Number
Given an input x, return y, which is equal to the square of x.

Solved

y equals x divided by 2
function y = x/2

Solved

metre to feet converter
The idea is to make a converter, which exchange meters to feets. We use a factor of 1m = 3.281*1f. so 3m are equals to 9.843 m...

Problem

Red Cross

3 månader ago | 0 | 20 solvers

Solved

Back to basics 15 - Benchmark
Covering some basic topics I haven't seen elsewhere on Cody. Return an array of the benchmark values for MATLAB.

Solved

Area of rhombus
Calculate the rhombus area

Solved

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

Solved

square number
Square a number

Solved

Rotate array 90 degrees
Rotate the given matrix by 90 degrees. Example, A = [1 2 3 ; 4 5 6 ] B = rotated(A) = [ 3 6; 2 5; 1 4 ]

Solved

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

Solved

square root
Find the square root (y) of an input (x).

Solved

Remove NaN ?
input -> matrix (n*m) with at least one element equal to NaN; output -> matrix(p*m), the same matrix where we deleted the enti...

Solved

Output a vector which is table of 9
Output a vector which is table of 9

Solved

Find the dimensions of a matrix
Just find the number of columns of the given matrix. Example x = [1 2 3 4 5 6] y = 2

Solved

Sum of the Multiplication of Vectors
Given the vectors x and y as input, multiply the vectors and return the summation of its elements. Example: x = [1 2 ...

Solved

Test Problem; Create a 5x5 array containing all ones
This is a test for learning the process of creating a Cody problem. The goal of this test problem will be to create an array,...

Solved

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

Solved

find the roots of a quadratic equation
for e.g x = [ 2 -1 -3] y = [1.5 -1]

Solved

Times 3 problem
When you enter the number, it should return the number multiplied by 3

Solved

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

Solved

Squaring Matrix
Square the following matrix using matlab % A = 1 2 3 4 5 6 7 8 So new matrix should display...

Solved

Sum of the Matrix Elements
Add up all the elements in a NxM matrix where N signifies the number of the rows and M signifies the number of the columns. E...

Solved

area of a sphere

Solved

Calculate volume of box
Calculate the volume of box,hiven its sides

Solved

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

Solved

Find the max element of the array
Find the max element of the array

Solved

Area of a Square
Given the length x of the side of a regular square, find the area of the square, A.

Solved