Risolto


radius of a spherical planet
You just measured its surface area, that is the input.

circa 5 anni fa

Risolto


Right and wrong
Given a vector of lengths [a b c], determines whether a triangle with those sides lengths is a right triangle: <http://en.wikipe...

circa 5 anni fa

Risolto


Is the Point in a Triangle?
Check whether a point or multiple points is/are in a triangle with three corners Points = [x, y]; Triangle = [x1, y1; x...

circa 5 anni fa

Risolto


03 - Matrix Variables 3
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_3c.png>> A 10x10 matrix where the numbers from 1 to 100 ...

circa 5 anni fa

Risolto


Remove all the words that end with "ain"
Given the string s1, return the string s2 with the target characters removed. For example, given s1 = 'the main event' your ...

circa 5 anni fa

Risolto


Pascal's Triangle
Given an integer n >= 0, generate the length n+1 row vector representing the n-th row of <http://en.wikipedia.org/wiki/Pascals_t...

circa 5 anni fa

Risolto


Divide by 4
Given the variable x as your input, divide it by 4 and put the result in y.

circa 5 anni fa

Risolto


Draw a '4' in a zero matrix!

circa 5 anni fa

Risolto


Draw a '6' in a zero matrix!

circa 5 anni fa

Risolto


Draw a '9' in a zero matrix!

circa 5 anni fa

Risolto


Draw a '7' in a zero matrix!

circa 5 anni fa

Risolto


Draw a '8' in a zero matrix!

circa 5 anni fa

Risolto


Draw a '3' in a zero matrix!

circa 5 anni fa

Risolto


Draw a '2' in a zero matrix!

circa 5 anni fa

Risolto


Draw a '5' in a zero matrix!

circa 5 anni fa

Risolto


Draw a '1' in a zero matrix!

circa 5 anni fa

Risolto


Add two numbers
Add two numbers (For beginners)

circa 5 anni fa

Risolto


Problem for beginners
Suppose that x is a column vector, with at least a length of 6. Delete the 2., 6., and the second last row. Example: X=[1;2;3...

circa 5 anni fa

Risolto


Problem for beginners
M is a nxm matrix. Swap the fist and the second last column with eachother. X=[1 2 3;4 5 6;7 8 9] Y=[2 1 3;5 4 6;8 7 9]

circa 5 anni fa

Risolto


Stairs
Make an n by n matrix, where the elements are ones and zeros. In the main diagonal, and under that, there should be only ones (...

circa 5 anni fa

Risolto


Matrix for beginners
Multiply x and y elemwise.

circa 5 anni fa

Risolto


Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

circa 5 anni fa

Risolto


Energy Conversion 2

circa 5 anni fa

Risolto


Energy Conversion 1

circa 5 anni fa

Risolto


Velocity Conversion

circa 5 anni fa

Risolto


Area Conversion 2

circa 5 anni fa

Risolto


Area Conversion 1

circa 5 anni fa

Risolto


Mass Conversion 2

circa 5 anni fa

Risolto


Mass Conversion 1

circa 5 anni fa

Risolto


Temperature Conversion 3

circa 5 anni fa

Carica altro