Community Profile

Contact

Top 5% contributor

I have a cell array out = cell(n,1), and each out{j}, 1<= j <= n, is a vector of integers. These vectors have different lengths....

2 Answers

1

Asked 3 years ago

Let A be an m by n matrix whose rows are linearly dependent. I want to remove rows from A such that the rank does not decrease....

0

Asked 2 years ago

[SCd Merging] *part 2:* I found a smaller problem where things go wrong. Taking as input n=3 and x = =[0:0.3:1]' the output ...

Take as input an array of digits (e.g. x = [1 2 3]) and output an array of digits that is that number "incremented" properly, (i...

Solve this!

3 years ago

Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...

Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

Given connectivity information about a graph, your job is to find the <http://en.wikipedia.org/wiki/Shortest_path_problem *short...

*Description* The purpose of this problem is to give the shortest path through a maze. The maze will be provided in a codifie...

* Given a set of letters, count all possible palindromes, using all of those letters. * For example, if the set is {'A' 'A' 'A'...

Given a collection of points, return the indices of the rows that contain the two points most distant from one another. The inpu...

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

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

Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

Remove all the redundant elements in a vector, but keep the first occurrence of each value in its original location. So if a =...

Given a string with text and digits, add all the numbers together. Examples: Input str = '4 and 20 blackbirds baked in a...

Given an amount of currency, return a vector of this form: [100 50 20 10 5 2 1 0.5 0.25 0.1 0.05 0.01] Example: Input a = ...

1:3 -> 0; 3:5 -> 6

If you have two small strings, like 'a' and 'b', return them put together like 'ab'. 'a' and 'b' => 'ab' For extra ...

Omit columns averages from a matrix. For example: A = 16 2 3 13 5 11 10 8 9 7 ...

Check whether the input matrix is a normal magic square: <http://en.wikipedia.org/wiki/Magic_square> Output the logical va...

Given a vector of lengths [a b c], determines whether a triangle with non-zero area (in two-dimensional Euclidean space, smarty!...

you just discovered its circumference, that is the input.

Given a row vector of numbers, find the indices of the two nearest numbers. Examples: [index1 index2] = nearestNumbers([2 5 3...

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

If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23...

If x=[0,3,4,2,1] then y=[4,3,2,1,0]

Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

Load more