Solved


Degrees to Radian
Convert degrees to radians

bijna 7 jaar ago

Solved


Square the input
Given a scalar or vector x, return the square of each element. Example x = [7 2] answer = [49 4]

bijna 7 jaar ago

Solved


Element by element multiplication of two vectors
Given two input vectors, return the element-by-element product. Example A = [1 2 3] B = [7 3 1] The answer should be...

bijna 7 jaar ago

Solved


Find the area of a triangle
Given a triangle with a base b and height h, return the triangle area.

bijna 7 jaar ago

Solved


Related Vectors
I have two vectors A & B. If the values in vector A is zero then the corresponding value in vector B should be zero. Example:...

bijna 7 jaar ago

Solved


Find out sum of all elements of given Matrix
Find out sum of all elements of given Matrix A=[1 2 3;4 5 6 ;7 8 9]; Answer must be: 45 *If you like this problem, pl...

bijna 7 jaar ago

Solved


Armstrong Number
Determine whether the given input n-digit number is Armstrong Number or not. Return True if it is an Armstrong Number. An n-D...

bijna 7 jaar ago

Solved


Negative Infinity
Round the given array a towards negative infinity.

bijna 7 jaar ago

Solved


Roots
Find out the roots of a given polynomial equation.Given are the coefficients of the equation.

bijna 7 jaar ago

Solved


Positive Infinity
Round the array a towards positive infinity

bijna 7 jaar ago

Solved


convert matrix to single column
given any matrix, convert it to single column

bijna 7 jaar ago

Solved


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

bijna 7 jaar ago

Solved


Factorial Numbers
Factorial is multiplication of integers. So factorial of 6 is 720 = 1 * 2 * 3 * 4* 5 *6 Thus 6 factorial = factorial(720)....

bijna 7 jaar ago

Solved


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

bijna 7 jaar ago

Solved


Matlab Basics - Rounding I
Write a script to round x DOWN to the next lowest integer: e.g. x = 2.3 --> x = 2 also: x = 2.7 --> x = 2

bijna 7 jaar ago

Solved


What is Sum Of all elements of Matrix
Given the matrix x, return the sum of all elements of matrix. Example: Input x = [ 1 2 0 0 0 0 6 9 3 3 ] ...

bijna 7 jaar ago

Solved


Create a two dimensional zero matrix
You have to create a zero matrix of size (mxn) whose inputs are m and n and the elements of your matrix should be zeros. Exam...

bijna 7 jaar ago

Solved


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

bijna 7 jaar ago

Solved


Create a Matrix of Zeros
Given an input x, create a square matrix y of zeros with x rows and x columns.

bijna 7 jaar ago

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

bijna 7 jaar ago

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

bijna 7 jaar ago

Solved


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

bijna 7 jaar ago

Solved


Back to basics 7 - Equal NaNs
Covering some basic topics I haven't seen elsewhere on Cody. Given 2 input variables, output true if they are equal, false ot...

bijna 7 jaar ago

Solved


Back to basics 15 - classes
Covering some basic topics I haven't seen elsewhere on Cody. Return the class of the input variable.

bijna 7 jaar ago

Solved


Find max
Find the maximum value of a given vector or matrix.

bijna 7 jaar ago

Solved


Factorize THIS, buddy
List the prime factors for the input number, in decreasing order. List each factor only once, even if the factorization includes...

bijna 7 jaar ago

Solved


Find the distance traveled by a car given velocity and time.
A car is traveling at a constant velocity for a specific amount of time. The function should use the two inputs, velocity and ti...

bijna 7 jaar ago

Solved


Rankine to Kelvin Converter
Given input R, degrees Rankine, convert into degrees Kelvin.

bijna 7 jaar ago

Solved


Calculate geostrophic current
eta0=0.01; R=300; f=0.01; g=9.81; x=-500:50:500; y=-500:50:500; [x y]=meshgrid(x,y); eta=eta0*exp(-(x.^2+...

bijna 7 jaar ago

Solved


what is the speed of the car if the car travelled 10m in 5 seconds
what is the speed of the car if the car travelled 10m in 5 seconds

bijna 7 jaar ago

Load more