Solved


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

10 years ago

Solved


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

10 years ago

Solved


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

10 years ago

Solved


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

10 years ago

Solved


kmph to mps
convert kilometer per hour to meter per second

10 years ago

Solved


Celcius to Kelvin
Convert Celsius degrees to Kelvin temperature.

10 years ago

Solved


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

10 years ago

Solved


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

10 years ago

Solved


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

10 years ago

Solved


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

10 years ago

Solved


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

10 years ago

Solved


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

10 years ago

Solved


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

10 years ago

Solved


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

10 years ago

Solved


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

10 years ago

Solved


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

10 years ago

Solved


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

10 years ago

Solved


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

10 years ago

Solved


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]

10 years ago

Solved


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

10 years ago

Solved


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

10 years ago

Solved


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

10 years ago

Solved


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

10 years ago

Solved


radius of a spherical planet
you just measured its surface area, that is the input.

10 years ago

Solved


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

10 years ago

Solved


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

10 years ago

Solved


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

10 years ago

Solved


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

10 years ago

Solved


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

10 years ago

Solved


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

10 years ago

Load more