Solved


Cellular Automaton | Rule X
Cellular Automata (CA) provide a convenient way to represent many kinds of systems in which the values of cells (either 0 or 1) ...

10 years ago

Solved


Probabilities - More brains than luck
This problem is related to problem <http://it.mathworks.com/matlabcentral/cody/problems/596-more-luck-than-brains> where the te...

10 years ago

Solved


Adding machine
Add number to all elements in given vector.

10 years ago

Solved


i forgot to use capital I
When referring to yourself you should write "I" (capital) and not "i". So correct the input string x, but be aware that other u...

10 years ago

Solved


isnan()
Replace all nans with zeros

10 years ago

Solved


Return strings encapsulated by braces
Return all substrings that are contained within braces ({}). For example: str = 'x = rho*x{-1} + (1-rho)*y{+1}'; when...

10 years ago

Solved


Convert decimal to hex as shown in test cases
Convert decimal to hex as shown in test cases.

10 years ago

Solved


Vector Multiplication
Vector Multiplication of three matrix as shown in test cases.

10 years ago

Solved


How to find average of each column ?
How to find average of each column for a given matrix?

10 years ago

Solved


How find sum of elements of each column in matrix?
How find sum of elements of each column in matrix?

10 years ago

Solved


How many bottles
Sometimes if you buy a drink in a glass bottle you can return that bottle and get some money back. Let's assume we have "x" amo...

10 years ago

Solved


Magnitude of a vector
Given a vector x, what is its magnitude?

10 years ago

Solved


I told you not separate me, but you did :( - ACDC
Given input vector, output it's DC and AC value Example: input = 0 1 -1 0 ac = 0 1 -1 0 dc = 0

10 years ago

Solved


Resort number using given index!
Resort matrix [a] using given index [b]. For example, if a=[2 5 3 5]; b=[4 1 2 3]; , the result is [5 2 5 3]. (hint: y...

10 years ago

Solved


Non trivial identities - flipping
Return x by flipping it.

10 years ago

Solved


Non trivial identities - reshape
Return x by reshaping it.

10 years ago

Solved


Non trivial identities - colon
Return x after treating it with colon.

10 years ago

Solved


Non trivial identities - linear system
Return x by solving a linear system.

10 years ago

Solved


Add the odd numbers
Add only the odd numbers of x example: x = [1 2 3 4 5] the positive numbers are: 1 3 5, so their sum is 9

10 years ago

Solved


Reduce the logic
We have three logical input, x,y and z. The output is: y = ((x&y)|z)&((z|x&y)|(z&y|x))|((x&z)|z)&((y|x&z)|(z&x|y))|(x|y|z) ...

10 years ago

Solved


product of given two numbers?
product of given two numbers?

10 years ago

Solved


how to round off a given number containing decimals?
how to round off a given number containing decimals?

10 years ago

Solved


How find minimum element of a column in matrix?
How find minimum element of a column in matrix?

10 years ago

Solved


Find max prime number
Given integer number n. Find the max prime number (mpn) that smaller than or equal to n. Example: n = 10 --> mpn = 7

10 years ago

Solved


Create Truth Table of Size according to input
Create a Truth Table Example: n = 3 output = [0 0 0; 0 0 1; 0 1 0; 0 1 1; 1 0 0; 1 0 1; 1 1 0; 1 1 1]

10 years ago

Solved


Remove all the columns contains only zero
Remove the column from the matrix which has only zeros . Refer the Example below a= 1 0 3 0 23 0 56 0 1 ...

10 years ago

Solved


Euclidean inter-point distance matrix
The Euclidean distance between two points in a p-dimensional space is a really common thing to compute in the field of computati...

10 years ago

Solved


A shooting competition
In a shooting competition, the target is a square of side L containing a circle of radius R<=L/2. A player scores one point if h...

10 years ago

Solved


Finding two missing number in 1 to n array
You are given an array of numbers from 1 to n with two missing numbers. Return the two missing numbers. Input: x=[5 2 0 1 ...

10 years ago

Solved


Set x value to each odd index of vector y.
Set x value to each odd index of vector y.

10 years ago

Load more