Community Profile

Contact

Top 1% contributor

20 downloads

1 year ago

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

Solve this!

12 months ago

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

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

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

Given a "counting sequence" vector x, construct the original sequence y. A counting sequence is formed by "counting" the entrie...

Given a vector x, find the "counting sequence" y. A counting sequence is formed by "counting" the entries in a given sequence...

Sort a vector of single digit whole numbers alphabetically by their name, in Finnish. See the Wikipedia page for <http://en.wik...

MATLAB has a <http://www.mathworks.com/help/techdoc/ref/setfield.html setfield> and a <http://www.mathworks.com/help/techdoc/ref...

Given the input inStr, give the boolean output out indicating whether all the parentheses are balanced. Examples: * If ...

The characteristic equation for a dynamic system is a polynomial whose roots indicate its behavior. If any of the <http://www.ma...

Given the vector a, find the longest run of consecutive numbers that can be evenly divided by the same number d where d > 1. ...

There are n doors in an alley. Initially they are all shut. You have been tasked to go down the alley n times, and open/shut the...

Your job is to tidy up a list of words that appear in a string. The words are separated by one or more spaces. Remove all words ...

Given a list of states, remove all the states that have two-word names. If s1 = 'Alabama Montana North Carolina Vermont N...

Given a list of US states, remove all the states that start with the letter N. If s1 = 'Alabama Montana Nebraska Vermont Ne...

Given a list of US states, remove all the states that end with the letter A. Example: Input s1 = 'Alabama Montana Nebras...

Given a string of text with phone numbers in it, return a unique'd cell array of strings that are the area codes. s = '508-647...

A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

Given a string s representing a list of numbers, find the five consecutive numbers that multiply to form the largest number. Spe...

Given a word, determine its score in <http://en.wikipedia.org/wiki/Scrabble Scrabble>. The input string will always be provide...

Given an input cell array of strings s, pick out the second column and turn it into a row vector of data. Missing data will be i...

This question was inspired by a Stack Overflow question forwarded to me by Matt Simoneau. Given a vector x, make an indexed pro...

Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...

Given a list of names in a cell array, sort the list by the last name. So if list = {'Barney Google','Snuffy Smith','Dagwood ...

Some numbers like 323 are palindromes. Other numbers like 124 are not. But look what happens when we add that number to a revers...

2 years ago

You want to find all elements that exist in greater than 50% of the rows in the matrix. For example, given A = 1 2 3 5 ...

The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...

Given a positive, scalar integer n, create a (2^n)-by-n double-precision matrix containing the binary numbers from 0 through 2^n...

Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

Load more