Solved


Sum of Positive Elements in a Matrix
Given a matrix A, write a function that returns the sum of all positive elements in A. Input: A = [-3, 4, -1; 6, -2, 8] ...

10 months ago

Solved


Sum of Even Numbers in a Vector
Write a function that takes a vector x as input and returns the sum of all even numbers in x. Input: x = [1, 2, 3, 4, 5, 6] ...

10 months ago

Solved


Test x = 1
Write a function to make the variable x = 1

10 months ago

Solved


Baye's theorem on conditional probability
Let the given probabilities Compute the output probability

10 months ago

Problem


Baye's theorem on conditional probability
Let the given probabilities Compute the output probability

10 months ago | 2 | 43 solvers

Submitted


alGolbach
Algorithm to compute and list every Goldbach couples of prime numbers which sum equals the given -even- input

10 months ago | 1 download |

0.0 / 5
Thumbnail

Solved


Convert given decimal number to binary number.
Convert given decimal number to binary number. Example x=10, then answer must be 1010.

10 months ago

Solved


Converting binary to decimals
Convert binary to decimals. Example: 010111 = 23. 110000 = 48.

10 months ago

Solved


MATLAB Basic: rounding IV
Do rounding towards plus infinity. Example: -8.8, answer -8 +8.1 answer 9 +8.50 answer 9

10 months ago

Solved


MATLAB Basic: rounding III
Do rounding towards minus infinity. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 8

10 months ago

Solved


MATLAB Basic: rounding II
Do rounding nearest integer. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 9

10 months ago

Solved


Matlab Basics - Rounding II
Write a script to round a variable x to 3 decimal places: e.g. x = 2.3456 --> y = 2.346

10 months ago

Solved


Diagonal Prod

10 months ago

Solved


For a rectangle, if x is the length and 2x is width. Then find out x from the area of the rectangle?
For a rectangle, if x is the length and 2x is the width. Then find out x from the area of the rectangle? if the area is equal...

10 months ago

Solved


Make an identity matrix whose diagonal elements are 1:n
For a given input n, make an n by n identity matrix that contains the elements 1:n along its diagonal. For example, if input=5: ...

10 months ago

Solved


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

10 months ago

Solved


row removal
Remove the nth row from input matrix M and return the resulting matrix in output N.

10 months ago

Solved


Magnitude of a vector
Given a vector x, what is its magnitude?

10 months ago

Solved


sign function

10 months ago

Solved


vectors counting by 5
Create a vector with numbers from x_min to x_max in increments of 5.

10 months ago

Solved


Power Numbers
Find the n-th power of m.

10 months ago

Solved


Find minimum and maximum elements of an array
For a given array find minimum and maximum elements of an array and store minimum value in first index of output and maximum in ...

10 months ago

Solved


Replace 0 indices in array with 1's
Take a incoming vector, and replace 0's with ones

10 months ago

Solved


Test
Answer the question and the correct answer write in vector. Only one answer is correct. 1a Yes 1b No 1c No 1d No ...

10 months ago

Solved


Cos Function
x is the abscissa. find the absolute value of cosine of -x and the same value with changed sign.

10 months ago

Solved


Find the summation of factorial series
Factorial numbers are n! = 1*2*3....*n the series is 1!, 2!, 3!,........, n!

10 months ago

Solved


First N Perfect Squares
*Description* Return the first N perfect squares *Example* input = 4; output = [ 1 4 9 16 ];

10 months ago

Solved


Back to basics 22 - Rotate a matrix
Covering some basic topics I haven't seen elsewhere on Cody. Rotate the input matrix 90 degrees counterclockwise (e.g. [1 2; ...

10 months ago

Solved


Area of a triangle
A triangle is given with base *'b'* ,vertical hight *'h'* . then find it's area.

10 months ago

Solved


surface of a spherical planet
you just discovered its circumference, that is the input.

10 months ago

Load more