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

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

11 mesi fa

Risolto


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

11 mesi fa

Risolto


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

11 mesi fa

Problema


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

11 mesi fa | 2 | 44 risolutori

Inviato


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

11 mesi fa | 1 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.

11 mesi fa

Risolto


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

11 mesi fa

Risolto


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

11 mesi fa

Risolto


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

11 mesi fa

Risolto


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

11 mesi 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

11 mesi fa

Risolto


Diagonal Prod

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

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

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

11 mesi fa

Risolto


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

11 mesi fa

Risolto


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

11 mesi fa

Risolto


sign function

11 mesi fa

Risolto


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

11 mesi fa

Risolto


Power Numbers
Find the n-th power of m.

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

11 mesi fa

Risolto


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

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

11 mesi fa

Risolto


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

11 mesi fa

Risolto


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

11 mesi fa

Risolto


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

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

11 mesi fa

Risolto


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

11 mesi fa

Risolto


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

11 mesi fa

Carica altro