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

plus de 5 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'

plus de 5 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...

plus de 5 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...

plus de 5 ans il y a

A résolu


Find the sides of an isosceles triangle when given its area and height from its base to apex
Find the sides of an isosceles triangle when given its area and the height from its base to apex. For example, with A=12 and ...

plus de 5 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...

plus de 5 ans il y a

A résolu


Is A the inverse of B?
Given a matrix A and a matrix B, is A the inverse of B? >>A=[2,4;3,5]; >>B=[-2.5,2;1.5,-1]; >>isInverse...

plus de 5 ans il y a

A résolu


Rotate Matrix @180 degree
Rotate Matrix @180 degree Example A=[8 1 6; 3 5 7; 4 9 2], then answer would be [2 9 4;...

plus de 5 ans il y a

A résolu


Converts numbers into characters
Converts numbers into characters

plus de 5 ans il y a

A résolu


Find the max element of the array
Find the max element of the array

plus de 5 ans il y a

A résolu


Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

plus de 5 ans il y a

A résolu


Calculate the average value of the elements in the array
Calculate the average value of the elements in the array

plus de 5 ans il y a

A résolu


the average value of the elements
Calculate the average value of the elements in the array

plus de 5 ans il y a

A résolu


Double all elements in the array
Duplicate all elements in the array

plus de 5 ans il y a

A résolu


calculate the length of matrix
input 1 array, calculate the length

plus de 5 ans il y a

A résolu


Draw a '0' in a one matrix!

plus de 5 ans il y a

A résolu


Draw a '4' in a zero matrix!

plus de 5 ans il y a

A résolu


Draw a '6' in a zero matrix!

plus de 5 ans il y a

A résolu


Draw a '9' in a zero matrix!

plus de 5 ans il y a

A résolu


Draw a '7' in a zero matrix!

plus de 5 ans il y a

A résolu


Draw a '8' in a zero matrix!

plus de 5 ans il y a

A résolu


Draw a '3' in a zero matrix!

plus de 5 ans il y a

A résolu


Draw a '2' in a zero matrix!

plus de 5 ans il y a

A résolu


Draw a '5' in a zero matrix!

plus de 5 ans il y a

A résolu


Draw a '1' in a zero matrix!

plus de 5 ans il y a

A résolu


Draw a 'Z'.
Given _n_ as input, generate a n-by-n matrix like 'Z' by _0_ and _1_ . Example: n=5 ans= [1 1 1 1 1 0 0 0 1 ...

plus de 5 ans il y a

A résolu


Draw a 'X'!
Given n as input Draw a 'X' in a n-by-n matrix. example: n=3 y=[1 0 1 0 1 0 1 0 1] n=4 y=[1 0 0...

plus de 5 ans il y a

A résolu


Draw 'O' !
Given n as input, generate a n-by-n matrix 'O' using 0 and 1 . example: n=4 ans= [1 1 1 1 1 0 0 1 ...

plus de 5 ans il y a

A résolu


Draw a 'N'!
Given n as input, generate a n-by-n matrix 'N' using 0 and 1 . Example: n=5 ans= [1 0 0 0 1 1 1 0 0 1 1 0 ...

plus de 5 ans il y a

Charger plus