해결됨


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

약 1년 전

해결됨


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

약 1년 전

해결됨


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

약 1년 전

해결됨


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

약 1년 전

해결됨


Inner product of two vectors
Find the inner product of two vectors.

약 1년 전

해결됨


Cell joiner
You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...

약 1년 전

해결됨


Bullseye Matrix
Given n (always odd), return output a that has concentric rings of the numbers 1 through (n+1)/2 around the center point. Exampl...

약 1년 전

해결됨


Is my wife right?
Regardless of input, output the string 'yes'.

약 1년 전

해결됨


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

약 1년 전

해결됨


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

약 1년 전

해결됨


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

약 1년 전

해결됨


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

약 1년 전

해결됨


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

약 1년 전

해결됨


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

약 1년 전

해결됨


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

약 1년 전

해결됨


Energy of an object
Calculate the total mechanical energy of an object. Total Energy= Potential energy + Kinetic energy P.E.=m*g*h K.E.=1/2...

약 1년 전

해결됨


Area of a disk
Find the area of a disk or circle. x= radius of the disk.

약 1년 전

해결됨


Linear system of equations
Solve the system of equations in three variables.

약 1년 전

해결됨


Alphabetize by last name
Given a list of names in a cell array, sort the list by the last name. So if list = {'Barney Google','Snuffy Smith','Dagwood ...

약 1년 전

해결됨


Dimensions of a rectangle
The longer side of a rectangle is three times the length of the shorter side. If the length of the diagonal is x, find the width...

약 1년 전

해결됨


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

약 1년 전