已解决


Length of the hypotenuse
Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<http://upload....

5 years 前

已解决


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

5 years 前

已解决


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

5 years 前

已解决


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

5 years 前

已解决


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

5 years 前

已解决


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

5 years 前

已解决


Return the first and last character of a string
Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...

5 years 前

已解决


Area of a circle
Find the value for area of the circle if diameter is given

5 years 前

已解决


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

5 years 前

已解决


Rotate a Matrix by 90 degrees
Rotate a Matrix by 90 degrees Example: If the input is: X = 1 2 3 4 5 6 7 8 9 ...

5 years 前

已解决


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

5 years 前

提问


how do I generate a spiral matrix which starts from first element
there is a command which takes only one arguement as a dimension of a square spiral matrix.But I need a way to generate such a m...

5 years 前 | 1 个回答 | 0

1

个回答