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

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

12 years ago

Solved


Dimensions of a rectangle
The longer side of a rectangle is three times the length of the shorter side. If the length of the diagonal is x, find the width...

12 years ago

Solved


Area of an Isoceles Triangle
An isosceles triangle has equal sides of length x and a base of length y. Find the area, A, of the triangle. <<http://upload...

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

12 years ago

Solved


Find a Pythagorean triple
Given four different positive numbers, a, b, c and d, provided in increasing order: a < b < c < d, find if any three of them com...

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

12 years ago

Solved


Triangle sequence
A sequence of triangles is constructed in the following way: 1) the first triangle is Pythagoras' 3-4-5 triangle 2) the s...

12 years ago

Solved


"Find out the best cricket"
This is how I originally read Problem 2013, so let's just go with it. Give me the first and last name of the best cricket, rega...

12 years ago

Solved


Find out the best cricketer
Irrespective of input, return Sachin Tendulkar as a output

12 years ago

Answered
Solving/plotting a nonlinear equation for multiple values
Perhaps something like: f = @(x,P)2*sqrt(P)*x^1.5 + .10905*x- 0.0363; P = .1:.1:100; x0 = 0.1; [x,fval] = arrayfun(@(P...

12 years ago | 0

Answered
Handles returning multiple outputs
I do not see how to do this using purely anonymous functions, but if that is not a requirement you could simply create a new fun...

12 years ago | 1

| accepted

Solved


Tony's trick for duplicating an mx1 vector n times
Without using repmat, or for loop, or concatenation, create a function to duplicate a vector, v, a specified number of times, n....

12 years ago

Solved


Convert double scalar to half-precision floating point (IEEE 754r)
Use MATLAB to convert a scalar double into a half-precision floating point. The return value should be a uint16. The half-pr...

12 years ago

Solved


Mechanics 1
I thought I would make a mechanics problem for all those physics lovers out there. Imagine two solid, rigid spheres B1 and B...

12 years ago

Solved


Battleship - Seaman Level
<http://www.conceptispuzzles.com/index.aspx?uri=puzzle/battleships Games Magazine Battleships> is a logic puzzle to find the Fle...

12 years ago

Solved


BattleShip - Petty Officer (Level 2)
<http://www.conceptispuzzles.com/index.aspx?uri=puzzle/battleships Games Magazine Battleships> is a logic puzzle to find the Fle...

12 years ago

Solved


BattleShip - Seaman (1) thru Admiral(6) : CPU Time Scoring(msec)
<http://www.conceptispuzzles.com/index.aspx?uri=puzzle/battleships Games Magazine Battleships> is a logic puzzle to find the Fle...

12 years ago

Solved


Wrap a vector, but insert NaN's at the wrap-positions.
When you plot a line that wraps, and do not want the sawtooth shape to show up in the plot, you can either draw all separate lin...

12 years ago

Solved


Insert certain elements into a vector.
We start with vector V. Some values W will be inserted into V, at positions U. Say, |V| contains |[1 2 3 4 5]| and |W| is |[0...

12 years ago

Answered
substitute each element of a vector into a matrix without using loop
perhaps something like: f = @(x)[4*x 5 ; 4 2*x]; % Matrix in functional form vector = 1:10; ...

12 years ago | 0

Solved


Swap two numbers
Example Input: a = 10 b = 20 Output a = 20 b = 10

12 years ago

Solved


Number Persistence
A number's persistence is the number of steps required to reduce it to a single digit by multiplying all its digits to obtain a ...

12 years ago

Solved


Check if integer
Given a vector of elements, determine if each element is an integer and return true or false accordingly.

12 years ago

Solved


Schrödinger dog
Everyone knows that dogs are less unpredictable than cats. But is that proven? Is that measurable at all? YES! NOW IT IS! ...

12 years ago

Solved


Number of problems
No, you don't read it wrong: this assignment is to return the number of this problem (and not the problem of this number).

12 years ago

Solved


Bleed non-zeros to the right using REGEXP, and that sort of cheatcodess...
This one is quite similar to <http://www.mathworks.nl/matlabcentral/cody/problems/1998-bleed-non-zeros-to-the-right>. But thi...

12 years ago

Solved


Bleed non-zeros to the right
What a title! Yet, it says what I mean. You get a vector, some values and a lot of zeroes. Every zero is replaced by the firs...

12 years ago

Solved


Compute Fibonacci Number
Compute the _n_-th Fibonacci Number f(0) = 0, f(1) = 1, f(2) = 1, f(3) = 2, ... f(42) = 267914296

12 years ago

Solved


Knot Count - Speed
<<http://www.mathworks.com/matlabcentral/contest_static/knots/images/blue_knot.jpg>> The Matlab Semi-Annual Contest Grand Fin...

12 years ago

Load more