A résolu


Draw 'F'
Draw a x-by-x matrix 'F' using 1 and 0. (x is odd and bigger than 4) Example: x=5 ans= [1 1 1 1 1 1 0 0 0 0 ...

environ 3 ans il y a

A résolu


Draw 'E'
Draw a x-by-x matrix 'E' using 1 and 0. (x is odd and bigger than 4) Example: x=5 ans= [1 1 1 1 1 1 0 0 0 0 ...

environ 3 ans il y a

A résolu


Draw 'D'.
Draw a x-by-x matrix 'D' using 0 and 1. example: x=4 ans= [1 1 1 0 1 0 0 1 1 0 0 1 1 1 1 0]

environ 3 ans il y a

A résolu


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

environ 3 ans il y a

A résolu


Draw 'B'
Draw a x-by-x matrix 'B' using 1 and 0. (x is odd and bigger than 4) Example: x=5 ans= [1 1 1 1 0 1 0 0 0 1 ...

environ 3 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 3 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 3 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 3 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 3 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 3 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 3 ans il y a

A résolu


Draw a '4' in a zero matrix!

environ 3 ans il y a

A résolu


Draw a '6' in a zero matrix!

environ 3 ans il y a

A résolu


Draw a '9' in a zero matrix!

environ 3 ans il y a

A résolu


Draw a '7' in a zero matrix!

environ 3 ans il y a

A résolu


Draw a '8' in a zero matrix!

environ 3 ans il y a

A résolu


Draw a '3' in a zero matrix!

environ 3 ans il y a

A résolu


Draw a '2' in a zero matrix!

environ 3 ans il y a

A résolu


Draw a '5' in a zero matrix!

environ 3 ans il y a

A résolu


Draw a '1' in a zero matrix!

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

environ 3 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;...

environ 3 ans il y a

A résolu


Converts numbers into characters
Converts numbers into characters

environ 3 ans il y a

A résolu


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

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

environ 3 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

environ 3 ans il y a

A résolu


to the 2 all elements
to the 2 all elements

environ 3 ans il y a

A résolu


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

environ 3 ans il y a

A résolu


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

environ 3 ans il y a

Charger plus