Gelöst


Max Change in Consecutive Elements
If an array is given as input then find the index of consecutive elements that represent maximum change. Example: Input ...

mehr als 3 Jahre vor

Gelöst


expand intervals
You're given a row vector of an even number of monotonically increasing integers. Each pair of consecutive integers is the lower...

mehr als 3 Jahre vor

Gelöst


compress sequence into intervals
You're given a row vector of monotonically increasing integers most of which are consecutive. Find the upper and lower bounds of...

mehr als 3 Jahre vor

Gelöst


expand intervals vol.2
Similar to problem <http://www.mathworks.co.uk/matlabcentral/cody/problems/2528 2528>. This is a more general case, when bounds ...

mehr als 3 Jahre vor

Gelöst


expand intervals vol.3
This is the next problem after <http://www.mathworks.co.uk/matlabcentral/cody/problems/2528 2528> and <http://www.mathworks.co.u...

mehr als 3 Jahre 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 3 Jahre 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 3 Jahre vor

Gelöst


Converts numbers into characters
Converts numbers into characters

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre 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 3 Jahre 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 3 Jahre vor

Gelöst


to the 2 all elements
to the 2 all elements

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


calculate the length of matrix
input 1 array, calculate the length

mehr als 3 Jahre vor

Gelöst


Draw a '0' in a one matrix!

mehr als 3 Jahre vor

Gelöst


Concatenate input positive integers to obtain a maximum.
Input some integers, you need to concatenate them to obtain a maximum integer. Neither use library function "perms" to list all ...

mehr als 3 Jahre vor

Gelöst


factorial
There are really some cody problems related to factorial of n, e.g., 42667, 45184, 46054, and etc. It is interesting to ask why ...

mehr als 3 Jahre vor

Gelöst


n-th digit of write-down all numbers
Write down number as 123456789101112131415161718192021222324252627282930... what's the n-th digit? input n and get the digit.

mehr als 3 Jahre vor

Gelöst


Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

mehr als 3 Jahre vor

Gelöst


Total energy

mehr als 3 Jahre vor

Gelöst


Potential energy calculation

mehr als 3 Jahre vor

Gelöst


Kinetic energy calculation

mehr als 3 Jahre vor

Gelöst


Laws of motion 1

mehr als 3 Jahre vor

Gelöst


Laws of motion 2

mehr als 3 Jahre vor

Gelöst


Laws of motion 3

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


Laws of motion 5

mehr als 3 Jahre vor

Gelöst


Laws of motion 6

mehr als 3 Jahre vor

Gelöst


Connect Four Win Checker
<http://en.wikipedia.org/wiki/Connect_Four Connect Four> is a game where you try to get four pieces in a row. For this problem, ...

mehr als 3 Jahre vor

Mehr laden