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


Find the Best Hotels
Given three input variables: hotels - a list of hotel names ratings - their ratings in a city cutoff - the rating at which yo...

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

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

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

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

environ 3 ans il y a

A résolu


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

environ 3 ans il y a

A résolu


Draw 'I'
Given n as input, draw a n-by-n matrix 'I' using 0 and 1. example: n=3 ans= [0 1 0 0 1 0 0 1 0] n=...

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

A résolu


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

environ 3 ans il y a

A résolu


Draw a '0' in a one matrix!

environ 3 ans il y a

A résolu


Total energy

environ 3 ans il y a

A résolu


Kinetic energy calculation

environ 3 ans il y a

A résolu


Laws of motion 1

environ 3 ans il y a

A résolu


Laws of motion 2

environ 3 ans il y a

A résolu


Laws of motion 4
Given the initial velocity 'u', final velocity 'v' and acceleration 'a', find the distance travelled.

environ 3 ans il y a

A résolu


Laws of motion 5

environ 3 ans il y a

A résolu


Binary code (array)
Write a function which calculates the binary code of a number 'n' and gives the result as an array(vector). Example: Inpu...

environ 3 ans il y a

A résolu


Bit Reversal
Given an unsigned integer _x_, convert it to binary with _n_ bits, reverse the order of the bits, and convert it back to an inte...

environ 3 ans il y a

A résolu


Given an unsigned integer x, find the largest y by rearranging the bits in x
Given an unsigned integer x, find the largest y by rearranging the bits in x. Example: Input x = 10 Output y is 12 ...

environ 3 ans il y a

A résolu


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

environ 3 ans il y a

Charger plus