A résolu


Smallest distance between a point and a rectangle
Given two points *x* and *y* placed at opposite corners of a rectangle, find the minimal euclidean distance between another poin...

presque 2 ans il y a

A résolu


Fibonacci Decomposition
Every positive integer has a unique decomposition into nonconsecutive Fibonacci numbers f1+f2+ ... Given a positive integer n, r...

presque 2 ans il y a

A résolu


Create a random vector of integers with given sum
Your task today is to write a function that returns a vector of integer numbers, between, and including, 1 and m, of which the s...

presque 2 ans il y a

A résolu


Generate a random matrix A of (1,-1)
Input n: is an positive integer which serves as the dimension of the matrix A; Output: A=(Aij),where each entry Aij is either...

presque 2 ans il y a

A résolu


Make a random, non-repeating vector.
This is a basic MATLAB operation. It is for instructional purposes. --- If you want to get a random permutation of integer...

presque 2 ans il y a

A résolu


Roll the Dice!
Description Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. Example [x1,x2] = rollDice(...

presque 2 ans il y a

A résolu


Generating random matrix with given probability mass function
Inspired by <http://www.mathworks.com/matlabcentral/cody/problems/2356-simulating-the-selection-of-a-state-with-given-probabilit...

presque 2 ans il y a

A résolu


Given n, create n random numbers such that their standard deviation is also n.
Given n, create n random numbers such that their standard deviation is also n.

presque 2 ans il y a

A résolu


Easy Sequences 10: Sum of Cumsums of Fibonacci Sequence
The function F(n) is defined as the set of Fibonacci numbers from the first up to the n-th. S(n) is the result of applying to F,...

presque 2 ans il y a

A résolu


Area Conversion 2

presque 2 ans il y a

A résolu


Area Conversion 1

presque 2 ans il y a

A résolu


Mass Conversion 2

presque 2 ans il y a

A résolu


Mass Conversion 1

presque 2 ans il y a

A résolu


Temperature Conversion 3
Given a temperature in Celcius, convert it to Fahrenheit.

presque 2 ans il y a

A résolu


Temperature Conversion 2

presque 2 ans il y a

A résolu


Temperature Conversion 1

presque 2 ans il y a

A résolu


Find Logic 19

presque 2 ans il y a

A résolu


Find Logic 18

presque 2 ans il y a

A résolu


Find Logic 17

presque 2 ans il y a

A résolu


Find Logic 16

presque 2 ans il y a

A résolu


Find Logic 14
Guess the Logic! logic(1) = 100 logic(2) = 96 logic(3) = 105 logic(4) = 89 logic(5) = 114 Make a function logic(x) which w...

presque 2 ans il y a

A résolu


Find Logic 15

presque 2 ans il y a

A résolu


Find Logic 13

presque 2 ans il y a

A résolu


Find Logic 12

presque 2 ans il y a

A résolu


Find Logic 11

presque 2 ans il y a

A résolu


Find Logic 10

presque 2 ans il y a

A résolu


Find Logic 9
Guess the Logic! logic(1) = 4 logic(2) = 1 logic(3) = 10 logic(4) = 2

presque 2 ans il y a

A résolu


Find Logic 8

presque 2 ans il y a

A résolu


Find Logic 7

presque 2 ans il y a

A résolu


Find Logic 6

presque 2 ans il y a

Charger plus