Risolto


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

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


Adding machine
Add number to all elements in given vector.

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


isnan()
Replace all nans with zeros

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


Non trivial identities - flipping
Return x by flipping it.

circa 10 anni fa

Risolto


Non trivial identities - reshape
Return x by reshaping it.

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


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]

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


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

circa 10 anni fa

Carica altro