Gelöst


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

8 Monate vor

Gelöst


Pizza!
Given a circular pizza with radius z and thickness a, return the pizza's volume. [ z is first input argument.] Non-scored bonus...

8 Monate vor

Gelöst


Converts numbers into characters
Converts numbers into characters

8 Monate vor

Gelöst


MATLAB Basic: rounding III
Do rounding towards minus infinity. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 8

8 Monate vor

Gelöst


Convert radians to degrees
Given input in radians, output to degrees

8 Monate vor

Gelöst


Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.

8 Monate vor

Gelöst


Find max
Find the maximum value of a given vector or matrix.

8 Monate vor

Gelöst


Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

8 Monate vor

Gelöst


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

8 Monate vor

Gelöst


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

8 Monate vor

Gelöst


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

8 Monate vor

Gelöst


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.

8 Monate vor

Gelöst


Flipping
Write code that can reverse the vector without using any sort of loop. Example Given the input vector A = [ 1 2 3 4 5...

8 Monate vor

Gelöst


Flipping a Matrix
Flipping matrix up and down. If a central row is exists, leave it, and flip remaining rows. Example Mat = magic(3) ...

8 Monate vor

Gelöst


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

8 Monate vor

Gelöst


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

8 Monate vor

Gelöst


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

8 Monate vor

Gelöst


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

8 Monate vor

Gelöst


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

8 Monate vor

Gelöst


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

8 Monate vor

Gelöst


Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not to use d...

8 Monate vor