**Programming Languages:**

MATLAB

**Spoken Languages:**

English

**Statistics**

RANK**179**

of 262,960

REPUTATION**540**

CONTRIBUTIONS

**6** Questions

**145** Answers

ANSWER ACCEPTANCE **
83.33%
**

VOTES RECEIVED**130**

RANK**11,600** of 17,997

REPUTATION**29**

AVERAGE RATING**5.00**

CONTRIBUTIONS**1** File

DOWNLOADS **9**

ALL TIME DOWNLOADS**243**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

Solved

Find Min and Max Differences in a Vector

Given an array of integers, return the absolute largest and smallest (non zero) difference between any two numbers in the array....

12 hours ago

Solved

Sum of 2 numbers in array

Given an array and a target sum, return true if any 2 numbers in the array sum up to the given target sum. Both numbers cannot h...

12 hours ago

Solved

determine skid distance of car

Determine the distance a car skids to a stop given initial velocity (v) and time (t).

14 hours ago

Solved

Castling-01

Given the position of only one player's chess pieces(some of them) on the chessboard, figure out whether castling is valid or no...

17 hours ago

Solved

Queen's move - 02

In continuation with the problem-45236 ... In the previous problem, it was assumed that there were no other chess pieces on th...

21 hours ago

Solved

Minimum number of children to distribute unequal cookie portions

A cruel parent wants to distribute N cookies such that it is impossible for every child to receive the same number of cookies. W...

2 days ago

Solved

Nth Order Polynomial Regression

Inputs: -two vectors x and y (row or column) -order of polynomial, p Outputs: -vector of coefficients [b0 b...

2 days ago

Create a structure of a field in the workspace

You are overwriting numeric values (double precision) with struct values. That is not allowed and hence the error. If all your ...

2 days ago | 0

| accepted

Calculating roots of an equation in Matlab.

Some slight tweaks I used vpasolve cause symbolic solver will give an error and will return the answer using vpasolve only. De...

2 days ago | 0

| accepted

Solved

Sort Non-zeros

Consider 0s in a vector creates a break-point. sort all the sub-arrays created by those break points. For example, a = [3, 4, 1...

3 days ago

Solved

Chain multiplication - 01

Say, you are given two matrices - A (shape= 3*4) and B(shape = 4*5). If you multiply these two matrices, the resultant matrix w...

3 days ago

Solved

Multiply binary numbers

Write a function to multiply two binary numbers input as strings. For example, input values of ‘1011’ and ‘101’ should give ’110...

3 days ago

Solved

Nuemann Polynomials

Return the coefficients of nth (n>=0) Nuemann polynomial, (a sequence in 1/t) as polynomials in alpha. The expected output is a...

3 days ago

Solved

Number of leaps in binary search

Binary search is one of the most popular searching algorithms (Binary Search Algorithm). It works only in a sorted array. It uti...

4 days ago

Solved

Bang Bang in Bangalore

Imagine a strange language disorder, Bangolangosis, has developed among trigonometricians of <http://en.wikipedia.org/wiki/Banga...

4 days ago

Solved

Fill-a-pix - Solution Checker

<http://www.conceptispuzzles.com/index.aspx?uri=puzzle/fill-a-pix/rules Fill-a-pix> is a logic puzzle game similar to Pic-a-Pix ...

5 days ago

Solved

Tic Tac Toe Solver

Create a function that checks n number of tic tac toe boards housed in a 3x3xn matrix where the x's are represented as 1's (and ...

5 days ago

Solved

Geometry: Find Circle given 3 Non-Colinear Points

*This Challenge is to determine the center and radius of a circle given three non-colinear points.* *Input:* Points *Outpu...

6 days ago

Solved

Minimum Distance Point to Segment

This Challenge is to determine the minimum distance from a 2-D line segment defined by two points to a point. The point is (p...

6 days ago

Solved

Spiral Out - 02

An array is given. Convert it into a spiral matrix. For example, a=1:27; out=[21 22 23 24 25 26 20 ...

6 days ago

Solved

English to Pig Latin Translator

Pig latin is a faux-language based off of English. The rules are as follows (excerpted from the wikipedia entry for Pig Latin): ...

6 days ago

Solved

Compress strings (not springs)

Please remove excess space, limit one space between others, and no space before punctuation marks. * For example, 'Trendy , ...

7 days ago

Please how to give different color for each plot for this case

One way is to use rand. Colors here will be choosen randomly x = [-2:0.1:2]; a = [.5, 1, 1.3, 1.95]; figure; for i=1:length(...

8 days ago | 1

Solved

Pandigital number n°2 (Inspired by Project Euler 32)

After Problem 2319. An n-digit number is pandigital if it makes use of all the digits 1 to n exactly ONCE. For example, the 5-...

9 days ago

Add and subtract matrix element consecutively

What you are doing in a loop, can be done via element-wise multiplication as well. You can make an array for the corresponding ...

10 days ago | 0

Solved

Given two arrays, find the maximum overlap

Given two arrays s1 and s2, create a new array s3 which is as short as possible and contains both arrays. If s1 = [1 2 3 4 5]...

10 days ago

Solved

Apply Function to Each Field of a Structure Array: Part 2

The builtin <http://www.mathworks.com/help/matlab/ref/structfun.html?=structfun structfun> applies a function handle to each fie...

12 days ago

Solved

Apply Function to Each Field of a Structure Array: Part 1

The builtin <http://www.mathworks.com/help/matlab/ref/structfun.html?=structfun structfun> applies a function handle to each fie...

12 days ago

Solved

Identify Reachable Points

Given a vector of 2-D Points and a vector of 2-D Deltas create an array of all Locations that can be reached from the points usi...

14 days ago

Solved

Momentum Calculation

A shopping cart of mass 'm1' is traveling with velocity 'u' and collides with a second shopping cart of mass 'm2.' The two shopp...

14 days ago