Resuelto


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

más de 1 año hace

Resuelto


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

más de 1 año hace

Resuelto


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

más de 1 año hace

Resuelto


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

más de 1 año hace

Resuelto


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

más de 1 año hace

Resuelto


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

más de 1 año hace

Resuelto


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

más de 1 año hace

Resuelto


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

más de 1 año hace

Resuelto


to the 2 all elements
to the 2 all elements

más de 1 año hace

Resuelto


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

más de 1 año hace

Resuelto


Draw a '0' in a one matrix!

más de 1 año hace

Resuelto


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

más de 1 año hace

Resuelto


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

más de 1 año hace

Resuelto


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

más de 1 año hace

Resuelto


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

más de 1 año hace

Resuelto


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

más de 1 año hace

Resuelto


Laws of motion 2

más de 1 año hace

Resuelto


Total energy

más de 1 año hace

Resuelto


Potential energy calculation

más de 1 año hace

Resuelto


Kinetic energy calculation

más de 1 año hace

Resuelto


Laws of motion 6

más de 1 año hace

Resuelto


Laws of motion 5

más de 1 año hace

Resuelto


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

más de 1 año hace

Resuelto


Laws of motion 3

más de 1 año hace

Resuelto


Laws of motion 1

más de 1 año hace

Resuelto


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

más de 1 año hace

Resuelto


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

más de 1 año hace

Resuelto


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

más de 1 año hace

Resuelto


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.

más de 1 año hace

Resuelto


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

más de 1 año hace

Cargar más