解決済み


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

約9年 前

解決済み


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

約9年 前

解決済み


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

約9年 前

解決済み


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

約9年 前

解決済み


kmph to mps
convert kilometer per hour to meter per second

約9年 前

解決済み


Celcius to Kelvin
Convert Celsius degrees to Kelvin temperature.

約9年 前

解決済み


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

約9年 前

解決済み


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

解決済み


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

約9年 前

解決済み


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

約9年 前

解決済み


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

約9年 前

解決済み


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

約9年 前

解決済み


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

約9年 前

解決済み


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

約9年 前

解決済み


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

約9年 前

解決済み


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

約9年 前

解決済み


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

約9年 前

解決済み


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

約9年 前

解決済み


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]

約9年 前

解決済み


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

約9年 前

解決済み


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

約9年 前

解決済み


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

約9年 前

解決済み


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

約9年 前

解決済み


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

約9年 前

解決済み


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

約9年 前

解決済み


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

約9年 前

解決済み


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

約9年 前

解決済み


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

約9年 前

解決済み


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

約9年 前

解決済み


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

約9年 前

さらに読み込む