已解决


square number
Square a number

9 years 前

已解决


Square a Number
Given an input x, return y, which is equal to the square of x.

9 years 前

已解决


y equals x divided by 2
function y = x/2

9 years 前

已解决


Find the area of the four walls
If length, breadth and height of the walls are given, find the area of the four walls.

9 years 前

已解决


Area of a disk
Find the area of a disk or circle. x= radius of the disk.

9 years 前

已解决


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

已解决


Area of a triangle
A triangle is given with base *'b'* ,vertical hight *'h'* . then find it's area.

9 years 前

已解决


Matlab Basics II - Count rows in a matrix
Write a function that returns that number of rows in a vector or matrix x example: x = [1; 2; 3] output = 3

9 years 前

已解决


Area of a circle
Find the value for area of the circle if diameter is given

9 years 前

已解决


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

9 years 前

已解决


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

9 years 前

已解决


Area of a Square
Inside a square is a circle with radius r. What is the area of the square?

9 years 前

已解决


Replace May with April
For instance, if the input is input_str = 'The flowers may bloom in April'; then the output is output_str = 'The flo...

9 years 前

已解决


Remove the vowels
Remove all the vowels in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill' Output s2 is 'Jck nd Jll wn...

9 years 前

已解决


Your favourite city!
Type your favourite city.

9 years 前

已解决


Write a code that will follow the equation y = x * (x + x) * x.
If x = 5, y = 5 * (5+5) * 5 = 250

9 years 前

已解决


Log of a number
Write a script that will give the log of x as output.

9 years 前

已解决


Square root of a number
Write a code that will output the square root of x.

9 years 前

已解决


Back and Forth Rows
Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...

9 years 前

已解决


Most nonzero elements in row
Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

9 years 前

已解决


Make a run-length companion vector
Given a vector x, return a vector r that indicates the run length of any value in x. Each element in r shows how many times the ...

9 years 前

已解决


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

9 years 前

已解决


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

9 years 前

已解决


Find the numeric mean of the prime numbers in a matrix.
There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...

9 years 前

已解决


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

9 years 前

已解决


Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

9 years 前

已解决


Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

9 years 前

已解决


Generate N equally spaced intervals between -L and L
Given N and L, return a list of numbers (in ascending order) that divides the interval [-L L] into N equal-length segments. F...

9 years 前

已解决


Determine Whether an array is empty
Input a matrix x, output y is TRUE if x is empty, otherwise FALSE.

9 years 前

加载更多