解決済み


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

3ヶ月 前

解決済み


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

3ヶ月 前

解決済み


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

3ヶ月 前

解決済み


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

3ヶ月 前

解決済み


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

3ヶ月 前

解決済み


Laws of motion 6

3ヶ月 前

解決済み


Convert from Fahrenheit to Celsius
Given an input vector F containing temperature values in Fahrenheit, return an output vector C that contains the values in Celsi...

3ヶ月 前

解決済み


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

3ヶ月 前

解決済み


Laws of motion 1

3ヶ月 前

解決済み


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

3ヶ月 前

解決済み


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.

3ヶ月 前

解決済み


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

3ヶ月 前

解決済み


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

3ヶ月 前

解決済み


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

3ヶ月 前

解決済み


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

4ヶ月 前

解決済み


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

4ヶ月 前

解決済み


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

4ヶ月 前

解決済み


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

4ヶ月 前

解決済み


to the 2 all elements
to the 2 all elements

4ヶ月 前

解決済み


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

4ヶ月 前

解決済み


Converts numbers into characters
Converts numbers into characters

4ヶ月 前

解決済み


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

4ヶ月 前