Solved

Rotate matrix by -90 degrees
Rotate a Matrix by -90 degrees Example: X = 1 2 3 4 5 6 7 8 9 output = 7 4 ...

mehr als 4 Jahre ago

Solved

Get 1-4-3-4-4
Get the value of the indices in the title and assign it to an array

mehr als 4 Jahre ago

Solved

Words Count: A String Array Approach
Given an input character vector consisting of words, punctuation marks, white spaces, and possibly newline characters (\n), arra...

mehr als 4 Jahre ago

Solved

Words Count: A Cell Array Approach
Given an input character vector consisting of words, punctuation marks, white spaces, and possibly newline characters (\n), arra...

mehr als 4 Jahre ago

Solved

When Was That Goal Scored?
We want to find out when the goals were scored in a particular soccer game. For each game, we are given a "Goal Event Data" XML ...

mehr als 4 Jahre ago

Solved

y=x
y=x

mehr als 4 Jahre ago

Solved

surrounded centroid
create a [n*n] matrix. n must be odd number. its centroid is n which is surrounded by n-1. example: surround(5)= 1 2 ...

mehr als 4 Jahre ago

Solved

Basic commands - Least common multiple
Make a function which will return least common multiple of "a" and "b" Example: a=8; b=6; y=24;

mehr als 4 Jahre ago

Solved

Basic commands - amount of inputs
Make a function, which will return amount of given inputs Example: amountinput(1,2,4,3,10) -> 5 , because we gave functio...

mehr als 4 Jahre ago

Solved

cross in array
Make a cross from "1" in odd size array. Other value from array should be equal to "0"; As input you get length of side of arra...

mehr als 4 Jahre ago

Solved

Basic commands - rounding
make a function which will round to integer, which is nearer to zero. Example x=[-2.5 2]; y=[-2 2];

mehr als 4 Jahre ago

Solved

Basics - not so easy division
Please make a function whcih divides x/y, but pay attention for some exceptions with NaN,0,Inf. Sometimes return "ERROR" instead...

mehr als 4 Jahre ago

Solved

Basic commands - Greatest common divisor
Please write a function, which, will put as output greatest common divisor. Example: A = [-5 17; 10 0];...

mehr als 4 Jahre ago

Solved

Which coins to give
I was in shop today. I admired, how shop assistant had to think, which coins to give me. The task is we have a vector v=[0.5 0....

mehr als 4 Jahre ago

Solved

Given input in degrees, output to radians

mehr als 4 Jahre ago

Solved

Number of cyles and fixed points in a permutation
A permutation can be constructed from one or more sets of elements in cyclic order. A permutation in a single row vector form ...

mehr als 4 Jahre ago

Solved

Church Encoding
Church encoded numeral is a function which takes two arguments _f_ and _x_ and applies _f_ to _x_ several times. For example,...

mehr als 4 Jahre ago

Solved

BASICS - sum part of vector
Please make a function, where as input you get vector "x" and and vector "c", where in "c" vector you get indexes to sum. Examp...

mehr als 4 Jahre ago

Solved

angle in regular polygon
Make a function which returns measure of interior angle in x-side regular polygon. x is as input. Please pay attention, that 1 ...

mehr als 4 Jahre ago

Solved

Sudoku square
We have a small Sudoku square, but one number is missing. x = [ 1 5 4 8 6 3 0 9 7 ] Make a function, wher...

mehr als 4 Jahre ago

Solved

Piecewise linear interpolation
Given an Mx2 vector and a row of M-1 integers, output a two column vector that linearly interpolates Y times between each succes...

mehr als 4 Jahre ago

Solved

Get linearly independent vectors of given matrix.
Get a set of linearly independent vectors from the rows of a given matrix. Example matrix=[ 3 -1 0 0 ; ...

mehr als 4 Jahre ago

Solved

Polygonal numbers
The task of <http://www.mathworks.co.uk/matlabcentral/cody/problems/5 Problem 5> is to calculate triangular numbers. By playing ...

mehr als 4 Jahre ago

Solved

Replace x value into y value in string text.
Replace x value into y value in string text. Example text='Hello World' x='World', y='Universe' result='Hello Universe'.

mehr als 4 Jahre ago

Solved

Duplicate me
Repeat elements of vector input twice Ex: input = [1 2 3] output = [1 1 2 2 3 3]

mehr als 4 Jahre ago

Solved

Prouhet–Tarry–Escott (basic)
Inspired by <http://www.mathworks.com/matlabcentral/cody/problems/660-find-a-subset-that-divides-the-vector-into-equal-halves pr...

mehr als 4 Jahre ago

Problem

Prouhet–Tarry–Escott (basic)
Inspired by <http://www.mathworks.com/matlabcentral/cody/problems/660-find-a-subset-that-divides-the-vector-into-equal-halves pr...

mehr als 4 Jahre ago | 0 | 7 solvers

Solved

Freebies anyone? No!!!!
Feel free to copy paste all the tests and voila you solved the problem

mehr als 4 Jahre ago

Solved

Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

mehr als 4 Jahre ago

Solved

The Goldbach Conjecture
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...

mehr als 4 Jahre ago