해결됨

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

9달 전

해결됨

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

9달 전

해결됨

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

9달 전

질문

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

9달 전 | 답변 수: 1 | 0

해결됨

Determine if input is odd

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

9달 전

해결됨

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

9달 전

해결됨

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

9달 전

해결됨

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

9달 전