Max of a Vector
Write a function to return the max of a vector

5年以上 前

Matlab Basics - Convert a row vector to a column vector
Write a script to convert a row (e.g. x = [1 2 3]) to a column (e.g. y = [1;2;3]), your script should be able to do this for any...

5年以上 前

Determine the square root
Determine the square root of the value the user has entered, n.

5年以上 前

Circle area using pi
Write a statement that assigns circleArea with the circle's area given circleRadius. Use the built-in mathematical constant pi. ...

5年以上 前

Volume and area of a sphere
Input(r) - radius Output([v,s]) - volume and area

5年以上 前

kmph to mps
convert kilometer per hour to meter per second

5年以上 前

Celcius to Kelvin
Convert Celsius degrees to Kelvin temperature.

5年以上 前

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

5年以上 前

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年以上 前

Find the hypotenuse
Given a and b (the two sides of a right-triangle), find c, the hypotenuse.

5年以上 前

Compute a dot product of two vectors x and y
x and y are input vectors, d is a number and contains their dot product

5年以上 前

Return 'on' or 'off'
When the input is true, return 'on', otherwise, return 'off'.

5年以上 前

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

5年以上 前

Who is the smartest MATLAB programmer?
Who is the smartest MATLAB programmer? Examples: Input x = 'Is it Obama?' Output = 'Me!' Input x = 'Who ?' Ou...

5年以上 前

Program an exclusive OR operation with logical operators
Program an exclusive or operation *without* using the MATLAB function xor. Use logical operators like |, &, ~, ... instead. ...

5年以上 前

surface of a spherical planet
you just discovered its circumference, that is the input.

5年以上 前

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

5年以上 前

Make one big string out of two smaller strings
If you have two small strings, like 'a' and 'b', return them put together like 'ab'. 'a' and 'b' => 'ab' For extra ...

5年以上 前

Fahrenheit to Celsius using multiple statements
Given a Fahrenheit value F, convert to a Celsius value C. While the equation is C = 5/9 * (F - 32), as an exercise use two state...

5年以上 前

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]

5年以上 前

Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

5年以上 前

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

5年以上 前

Create a row array using double colon operator
Create a row array from 9 to 1, using the double colon operator.

5年以上 前

Simple equation: Annual salary
Given an hourly wage, compute an annual salary by multiplying the wage times 40 and times 50, because salary = wage x 40 hours/w...

5年以上 前

you just measured its surface area, that is the input.

5年以上 前

Circle area using pi
Given a circle's radius, compute the circle's area. Use the built-in mathematical constant pi.

5年以上 前

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

5年以上 前

Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

5年以上 前

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

5年以上 前

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

5年以上 前