Solved


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

1 year ago

Solved


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

1 year ago

Solved


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

1 year ago

Solved


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

1 year ago

Solved


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

1 year ago

Solved


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

1 year ago

Solved


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

1 year ago

Solved


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.

1 year ago

Solved


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

1 year ago

Solved


Area Conversion 2

1 year ago

Solved


Area Conversion 1

1 year ago

Solved


Mass Conversion 2

1 year ago

Solved


Mass Conversion 1

1 year ago

Solved


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

1 year ago

Solved


Temperature Conversion 2

1 year ago

Solved


Temperature Conversion 1

1 year ago

Solved


Find Logic 19

1 year ago

Solved


Find Logic 18

1 year ago

Solved


Find Logic 17

1 year ago

Solved


Find Logic 16

1 year ago

Solved


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

1 year ago

Solved


Find Logic 15

1 year ago

Solved


Find Logic 13

1 year ago

Solved


Find Logic 12

1 year ago

Solved


Find Logic 11

1 year ago

Solved


Find Logic 10

1 year ago

Solved


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

1 year ago

Solved


Find Logic 8

1 year ago

Solved


Find Logic 7

1 year ago

Solved


Find Logic 6

1 year ago

Load more