A résolu


Spherical Volume
Calculate the volume of a sphere.

environ 2 ans il y a

A résolu


Can we make a triangle?
Given three positive number, check whether a triangle can be made with these sides length or not. remember that in a triangle su...

environ 2 ans il y a

A résolu


Height of a right-angled triangle
Given numbers a, b and c, find the height of the right angled triangle with sides a and b and hypotenuse c, for the base c. If a...

environ 2 ans il y a

A résolu


Find my daddy long leg (No 's')
Given the ratio of the two legs (longer / shorter), and the hypotenuse length, find the value of the bigger leg.

environ 2 ans il y a

A résolu


Natural numbers in string form
Create a cell array of strings containing the first n natural numbers. _Slightly_ harder than it seems like it should be. Ex...

environ 2 ans il y a

A résolu


Fix the last element of a cell array
Note: this is lifted directly from <http://www.mathworks.com/matlabcentral/answers/82825-puzzler-for-a-monday Puzzler for a Mond...

environ 2 ans il y a

A résolu


Cell Counting: How Many Draws?
You are given a cell array containing information about a number of soccer games. Each cell contains one of the following: * ...

environ 2 ans il y a

A résolu


Remove element(s) from cell array
You can easily remove an element (or a column in any dimension) from a normal matrix, but assigning that value (or range) empty....

environ 2 ans il y a

A résolu


Convert a Cell Array into an Array
Given a square cell array: x = {'01', '56'; '234', '789'}; return a single character array: y = '0123456789'

environ 2 ans il y a

A résolu


Split a string into chunks of specified length
Given a string and a vector of integers, break the string into chunks whose lengths are given by the elements of the vector. Ex...

environ 2 ans il y a

A résolu


Convert a numerical matrix into a cell array of strings
Given a numerical matrix, output a *cell array of string*. For example: if input = 1:3 output is {'1','2','3'} whic...

environ 2 ans il y a

A résolu


Create a cell array out of a struct
Create a cell array out of a (single) struct with the fieldname in the first column and the value in the second column: in: ...

environ 2 ans il y a

A résolu


Cell joiner
You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...

environ 2 ans il y a

A résolu


String Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values
<http://www.mathworks.com/help/matlab/characters-and-strings.html String array> and cell array are two types of containers for s...

environ 2 ans il y a

A résolu


Find the Pattern 3

environ 2 ans il y a

A résolu


Find the Pattern 1

environ 2 ans il y a

A résolu


Find Logic 23

environ 2 ans il y a

A résolu


Find Logic 22

environ 2 ans il y a

A résolu


Can the given sides form a triangle?
Can the three given sides form a triangle?

environ 2 ans il y a

A résolu


Find x rows where the sum of the numbers is the maximum
Find x rows where the sum of the numbers is the maximum. For example: when x is 2 and m is 2 3 5 0 2 3 5 5 6 0 9 4 then y =...

environ 2 ans il y a

A résolu


Draw a '1' in a zero matrix!

environ 2 ans il y a

A résolu


Draw a '5' in a zero matrix!

environ 2 ans il y a

A résolu


Draw a '2' in a zero matrix!

environ 2 ans il y a

A résolu


Draw a '3' in a zero matrix!

environ 2 ans il y a

A résolu


Draw a '8' in a zero matrix!

environ 2 ans il y a

A résolu


Draw a '6' in a zero matrix!

environ 2 ans il y a

A résolu


Draw a '4' in a zero matrix!

environ 2 ans il y a

A résolu


Draw a '9' in a zero matrix!

environ 2 ans il y a

A résolu


Find Logic 15

environ 2 ans il y a

A résolu


Find Logic 10

environ 2 ans il y a

Charger plus