Risolto


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

quasi 4 anni fa

Risolto


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

quasi 4 anni fa

Risolto


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

quasi 4 anni fa

Risolto


Set the array elements whose value is 13 to 0
Input A either an array or a vector (which can be empty) Output B will be the same size as A . All elements of A equal to 13...

quasi 4 anni fa

Risolto


Find the largest value in the 3D matrix
Given a 3D matrix A, find the largest value. Example >> A = 1:9; >> A = reshape(A,[3 1 3]); >> islargest(A) a...

quasi 4 anni fa

Risolto


Matrix Pattern 7

quasi 4 anni fa

Risolto


Matrix Pattern 6

quasi 4 anni fa

Risolto


Matrix Pattern 9

quasi 4 anni fa

Risolto


Total energy

quasi 4 anni fa

Risolto


Potential energy calculation

quasi 4 anni fa

Risolto


Kinetic energy calculation

quasi 4 anni fa

Risolto


Laws of motion 6

quasi 4 anni fa

Risolto


Laws of motion 5

quasi 4 anni fa

Risolto


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

quasi 4 anni fa

Risolto


Laws of motion 3

quasi 4 anni fa

Risolto


Laws of motion 2

quasi 4 anni fa

Risolto


Laws of motion 1

quasi 4 anni fa

Risolto


Matrix Pattern 4

quasi 4 anni fa

Risolto


Matrix Pattern 3

quasi 4 anni fa

Risolto


Matrix Pattern 1

quasi 4 anni fa

Risolto


Draw a '0' in a one matrix!

quasi 4 anni fa

Risolto


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

quasi 4 anni fa

Risolto


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

quasi 4 anni fa

Risolto


Converts numbers into characters
Converts numbers into characters

quasi 4 anni fa

Risolto


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

quasi 4 anni fa

Risolto


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

quasi 4 anni fa

Risolto


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

quasi 4 anni fa

Risolto


to the 2 all elements
to the 2 all elements

quasi 4 anni fa

Risolto


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

quasi 4 anni fa

Risolto


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

quasi 4 anni fa

Carica altro