Gelöst


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

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Problem


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

mehr als ein Jahr vor | 2 | 46 Lösungsvorschläge

Gesendet


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

mehr als ein Jahr vor | 11 Downloads |

0.0 / 5
Thumbnail

Gelöst


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

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


Diagonal Prod

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


sign function

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


Power Numbers
Find the n-th power of m.

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Mehr laden