165 total contributions since 2007

Solved

Replicate elements in vectors

Replicate each element of a row vector (with NaN) a constant number of times. Examples n=2, A=[1 2 3] -> [1 1 2 2 3 3] ...

3 days ago

Solved

Set the array elements whose value is 13 to 0

Input A either an array or a vector (which can be empty) Output B will be the same size as A . All elements of A equal to 13...

3 days ago

Solved

Find the largest value in the 3D matrix

Given a 3D matrix A, find the largest value. Example >> A = 1:9; >> A = reshape(A,[3 1 3]); >> islargest(A) a...

3 days ago

Solved

Is this triangle right-angled?

Given any three positive numbers a, b, c, return true if the triangle with sides a, b and c is right-angled. Otherwise, return f...

3 days ago

Solved

Side of a rhombus

If a rhombus has diagonals of length x and x+1, then what is the length of its side, y? <<http://upload.wikimedia.org/wikipe...

3 days ago

Solved

Side of an equilateral triangle

If an equilateral triangle has area A, then what is the length of each of its sides, x? <<http://upload.wikimedia.org/wikipe...

3 days ago

Solved

Area of an equilateral triangle

Calculate the area of an equilateral triangle of side x. <<http://upload.wikimedia.org/wikipedia/commons/e/e0/Equilateral-tr...

3 days ago

Solved

Length of a short side

Calculate the length of the short side, a, of a right-angled triangle with hypotenuse of length c, and other short side of lengt...

3 days ago

Solved

Length of the hypotenuse

Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<http://upload....

3 days ago

Solved

Is this triangle right-angled?

Given three positive numbers a, b, c, where c is the largest number, return *true* if the triangle with sides a, b and c is righ...

3 days ago

Submitted

Dragon Curve (aka Jurassic Park Fractal)

Plots user specified variations of the Dragon Curve

1 year ago | 5 downloads |

Submitted

Empty a Cup with a Straw

Calculates the number of dips a straw must make to decrease the water level in a cup

1 year ago | 1 download |

Submitted

Model a Sunflower with the Golden Ratio

Uses the Golden Ratio to predict the location of each seed on a sunflower

1 year ago | 5 downloads |

Solved

Simple equation: Annual salary

Given an hourly wage, compute an annual salary by multiplying the wage times 40 and times 50, because salary = wage x 40 hours/w...

2 years ago

Solved

Circle area using pi

Given a circle's radius, compute the circle's area. Use the built-in mathematical constant pi.

2 years ago

Submitted

Show

Prints the contents of structures, including structure arrays and nested structures

2 years ago | 0 downloads |

Submitted

GoTo

Points the Current Folder to the location of a file or a path.

2 years ago | 0 downloads |

Submitted

Distance Matrix

fast, vectorized inter/intra-point distance matrix calculation (Euclidean, Manhattan, or Chebyshev)

2 years ago | 15 downloads |

Submitted

Dijkstra's Minimum Cost Path Algorithm

calculates the shortest (least cost) path along edges of a graph using Dijkstra's Algorithm

2 years ago | 102 downloads |

Answered

Best way to programmatically detect new graphics engine?

~verLessThan('matlab','8.4')

Best way to programmatically detect new graphics engine?

~verLessThan('matlab','8.4')

3 years ago | 1

| accepted

Question

Why do scatter plot markers not change size correctly in R2014b?

With the new graphics package, scatter plots do not always render correctly. For example, when I create a scatter plot with dif...

3 years ago | 0 answers | 0

Submitted

Open Traveling Salesman Problem - Genetic Algorithm

Finds a near-optimal solution to a "open" variation of the TSP using a GA

3 years ago | 19 downloads |

Submitted

Fixed Endpoints Open Traveling Salesman Problem - Genetic Algorithm

Finds a near-optimal solution to a "open" variation of the TSP with fixed endpoints using a GA

3 years ago | 4 downloads |

Submitted

Traveling Salesman Problem - Genetic Algorithm

Finds a near-optimal solution to a TSP using a GA

3 years ago | 123 downloads |

Submitted

Multiple Traveling Salesmen Problem - Genetic Algorithm

Finds a near-optimal solution to a M-TSP using a GA

3 years ago | 17 downloads |

Submitted

Traveling Salesman Problem - Nearest Neighbor

Finds a near-optimal solution to a TSP using Nearest Neighbor (NN)

3 years ago | 23 downloads |

Submitted

Fixed Start Open Traveling Salesman Problem - Genetic Algorithm

Finds a near-optimal solution to a "open" variation of the TSP with fixed start points using a GA

3 years ago | 9 downloads |