Risolto


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

circa un anno fa

Risolto


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

circa un anno fa

Risolto


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

circa un anno fa

Risolto


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

circa un anno fa

Problema


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

circa un anno fa | 2 | 45 risolutori

Inviato


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

circa un anno fa | 10 download |

0.0 / 5
Thumbnail

Risolto


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

circa un anno fa

Risolto


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

circa un anno fa

Risolto


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

circa un anno fa

Risolto


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

circa un anno fa

Risolto


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

circa un anno fa

Risolto


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

circa un anno fa

Risolto


Diagonal Prod

circa un anno fa

Risolto


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

circa un anno fa

Risolto


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

circa un anno fa

Risolto


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

circa un anno fa

Risolto


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

circa un anno fa

Risolto


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

circa un anno fa

Risolto


sign function

circa un anno fa

Risolto


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

circa un anno fa

Risolto


Power Numbers
Find the n-th power of m.

circa un anno fa

Risolto


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

circa un anno fa

Risolto


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

circa un anno fa

Risolto


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

circa un anno fa

Risolto


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

circa un anno fa

Risolto


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

circa un anno fa

Risolto


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

circa un anno fa

Risolto


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

circa un anno fa

Risolto


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

circa un anno fa

Risolto


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

circa un anno fa

Carica altro