Solved


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

ungefär 3 år ago

Solved


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]

ungefär 3 år ago

Solved


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

ungefär 3 år ago

Solved


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

ungefär 3 år ago

Solved


Draw a '4' in a zero matrix!

ungefär 3 år ago

Solved


Draw a '6' in a zero matrix!

ungefär 3 år ago

Solved


Draw a '9' in a zero matrix!

ungefär 3 år ago

Solved


Draw a '7' in a zero matrix!

ungefär 3 år ago

Solved


Draw a '1' in a zero matrix!

ungefär 3 år ago

Solved


Draw a '8' in a zero matrix!

ungefär 3 år ago

Solved


Draw a '3' in a zero matrix!

ungefär 3 år ago

Solved


Draw a '2' in a zero matrix!

ungefär 3 år ago

Solved


Draw a '5' in a zero matrix!

ungefär 3 år ago

Solved


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

ungefär 3 år ago

Solved


Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

ungefär 3 år ago

Solved


Return area of square
Side of square=input=a Area=output=b

ungefär 3 år ago

Solved


Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

ungefär 3 år ago

Solved


Add two numbers
Given a and b, return the sum a+b in c.

ungefär 3 år ago

Solved


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

ungefär 3 år ago