A résolu


Percentage of zeros in a matrix of only 1s and 0s
Write a function called _zero_stat_ that takes a matrix as an input that only has 0 and 1 elements. The function needs to comput...

plus de 7 ans il y a

A résolu


Find the binary code
Given a sinusoidal signal, create a function that returns the binary code of a quantized value. The function takes the bit lengt...

plus de 7 ans il y a

A résolu


Combination of Vectors
Return a combination of vectors x1, x2 based on y1, y2 per: x(j) = 0 if y1(j) < y2(j) x(j) = x1(j) if y1(j)...

plus de 7 ans il y a

A résolu


Sum of diagonals
Compute the sum of diagonal elements of a square matrix and store the larger sum to s. Eg : a = [1 2 3; 2 3 4; 4 5 10] ...

plus de 7 ans il y a

A résolu


Ounces to Kilograms
convert ounces to kilograms, easy

plus de 7 ans il y a

A résolu


Perimeter of a quadrilateral
There are four cars starting at a point. The first car points north, the second one points east, the third one points south, an...

plus de 7 ans il y a

A résolu


'Determine if array of numbers is odd'
Return true if the input single number is odd. If the input is a vector, it will return a vector or array of logical values indi...

plus de 7 ans il y a

A résolu


Calculate the sum of two polynomials
Calculate the sum of two polynomials if they are written in notation with their coefficients. example: a=[3 4 5]; b=[...

plus de 7 ans il y a

A résolu


Given a square and a circle, please decide whether the square covers more area.
You know the side of a square and the diameter of a circle, please decide whether the square covers more area.

plus de 7 ans il y a

A résolu


Perfect square.
Determine if the input is a perfect square or not. Example - If input is 25, return 1. If input is 17, return 0.

plus de 7 ans il y a

A résolu


Determinants
Given a square matrix(A), find the determinant(d). For example: A = [1,3;4,5] d = 1*5-4*3 = -7

plus de 7 ans il y a

A résolu


find the 'M'
for an input x, return 1 at the location of the letter 'M'

plus de 7 ans il y a

A résolu


Basic Quadratic Equation
Create the equation: y=(3x)^2+(5x)+35 and compute y for various values of x

plus de 7 ans il y a

A résolu


Product of all elements in an array
Compute the product of all elements in an array.

plus de 7 ans il y a

A résolu


concatenate the elements
you should concatenate the elements of a matrix in one dimensional array, for example if the input is A = [1 2 3; 4 5 6; 7 ...

plus de 7 ans il y a

A résolu


The answer to life the universe and everything
Write a function that gives the answer to life the universe and everything to every input except the input is 42. In this case t...

plus de 7 ans il y a

A résolu


Find the index of the lowest number in a matrix
Take a matrix, and find the [row cal] index of the lowest number

plus de 7 ans il y a

A résolu


subtraction of two nos
given a and b, subtract and give the answer

plus de 7 ans il y a

A résolu


Average of even-numbered columns
Given a vector, find the average of even-numbered columns. e.g x = [ 4 6 8 9 1 2 7 ] y = ( 6 + 9 + 2 ) / 3

plus de 7 ans il y a

A résolu


Simple String Concatenation
This is a simple problem involving taking two incoming strings, and outputting the concatenated string with a space separating t...

plus de 7 ans il y a

A résolu


Rate of event occurence: find percentiles of the distribution (for smallish rates)
*In this problem you need to find the 5th and 95th percentiles of a Poisson distribution defined by parameter _μ_ (the mean rate...

plus de 7 ans il y a

A résolu


Solve The Equation
The coefficients of a system of equations are given in two vectors, x1 and x2. Write a function to solve the equation and return...

plus de 7 ans il y a

A résolu


Kurosu solver
This problem is related to <https://www.mathworks.com/matlabcentral/cody/problems/44657-kurosu-checker Problem 44657>. The ga...

plus de 7 ans il y a

A résolu


Find the last digit
FInd the last digit of a given number. Given number is the input and output should be the last digit of that number.

plus de 7 ans il y a

A résolu


Calculate the volume of the cube.
Example n = 3; a = volume(n); a = 27

plus de 7 ans il y a

A résolu


square of a number
find square of a given number

plus de 7 ans il y a

A résolu


calculate PI without using pi function
There are many methods to get the pi(Ratio of circumference to diameter). You should get pi without using the pi function in M...

plus de 7 ans il y a

A résolu


Calculating Ring Area
In two-dimensional space, a ring can be constructed by using two concentric circles. Determine the area of a ring which has r1 ...

plus de 7 ans il y a

A résolu


Find parts of a circle.
Given radius (r) of a circle find the diameter (d), circumference (c), an area (a).

plus de 7 ans il y a

A résolu


Adding Numbers
Add the input numbers to the original.

plus de 7 ans il y a

Charger plus