Gelöst


Sum of series I
What is the sum of the following sequence: Σ(2k-1) for k=1...n for different n?

mehr als ein Jahr vor

Gelöst


Create a vector
Create a vector from 0 to n by intervals of 2.

mehr als ein Jahr vor

Gelöst


Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.

mehr als ein Jahr vor

Gelöst


Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

mehr als ein Jahr vor

Gelöst


Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...

mehr als ein Jahr vor

Gelöst


Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...

mehr als ein Jahr vor

Gelöst


Find max
Find the maximum value of a given vector or matrix.

mehr als ein Jahr vor

Gelöst


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

mehr als ein Jahr vor

Gelöst


to the 2 all elements
to the 2 all elements

mehr als ein Jahr vor

Gelöst


Is A the inverse of B?
Given a matrix A and a matrix B, is A the inverse of B? >>A=[2,4;3,5]; >>B=[-2.5,2;1.5,-1]; >>isInverse...

mehr als ein Jahr vor

Gelöst


Draw a '0' in a one matrix!

mehr als ein Jahr vor

Gelöst


Calculate the average value of the elements in the array
Calculate the average value of the elements in the array

mehr als ein Jahr vor

Gelöst


Rotate Matrix @180 degree
Rotate Matrix @180 degree Example A=[8 1 6; 3 5 7; 4 9 2], then answer would be [2 9 4;...

mehr als ein Jahr vor

Gelöst


Find the max element of the array
Find the max element of the array

mehr als ein Jahr vor

Gelöst


Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

mehr als ein Jahr vor

Gelöst


Double all elements in the array
Duplicate all elements in the array

mehr als ein Jahr vor

Gelöst


Laws of motion 2

mehr als ein Jahr vor

Gelöst


Total energy

mehr als ein Jahr vor

Gelöst


Potential energy calculation

mehr als ein Jahr vor

Gelöst


Kinetic energy calculation

mehr als ein Jahr vor

Gelöst


Laws of motion 6

mehr als ein Jahr vor

Gelöst


Laws of motion 5

mehr als ein Jahr vor

Gelöst


Laws of motion 4
Given the initial velocity 'u', final velocity 'v' and acceleration 'a', find the distance travelled.

mehr als ein Jahr vor

Gelöst


Laws of motion 3

mehr als ein Jahr vor

Gelöst


Laws of motion 1

mehr als ein Jahr vor

Gelöst


Covering area
As an extension of the problem <http://www.mathworks.com/matlabcentral/cody/problems/416-polygon-area>, find the area, bounded b...

mehr als ein Jahr vor

Gelöst


Triangle sequence
A sequence of triangles is constructed in the following way: 1) the first triangle is Pythagoras' 3-4-5 triangle 2) the s...

mehr als ein Jahr vor

Gelöst


Number of 1s in a binary string
Find the number of 1s in the given binary string. Example. If the input string is '1100101', the output is 4. If the input stri...

mehr als ein Jahr vor

Gelöst


Magic is simple (for beginners)
Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Mehr laden