已解决


Laws of motion 6

2 years 前

已解决


Calculate area of sector
A=function(r,seta) r is radius of sector, seta is angle of sector, and A is its area. Area of sector A is defined as 0.5*(r^2...

2 years 前

已解决


Bottles of beer
Given an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and ...

2 years 前

已解决


Bit to Gigabyte
1 bit = 1.25 × 10^-10 gigabytes | x is bit | y is gigabyte

2 years 前

已解决


Convert radians to degrees
Given input in radians, output to degrees

2 years 前

已解决


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

2 years 前

已解决


Rounding off numbers to n decimals
Inspired by a mistake in one of the problems I created, I created this problem where you have to round off a floating point numb...

2 years 前

已解决


MATLAB Basic: rounding IV
Do rounding towards plus infinity. Example: -8.8, answer -8 +8.1 answer 9 +8.50 answer 9

2 years 前

已解决


MATLAB Basic: rounding III
Do rounding towards minus infinity. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 8

2 years 前

已解决


MATLAB Basic: rounding II
Do rounding nearest integer. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 9

2 years 前

已解决


Length of a short side
Calculate the length of the short side, a, of a right-angled triangle with hypotenuse of length c, and other short side of lengt...

2 years 前

已解决


Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

2 years 前

已解决


Create a vector
Create a vector from 0 to n by intervals of 2.

2 years 前

已解决


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

2 years 前

已解决


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

2 years 前

已解决


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

2 years 前

已解决


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

2 years 前

已解决


Weighted average
Compute the weighted average Y, of the vector A, given the weight vector W. The weighted average is the sum of the dot produc...

2 years 前

已解决


Converts numbers into characters
Converts numbers into characters

2 years 前

已解决


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

2 years 前

已解决


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

2 years 前

已解决


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

2 years 前

已解决


to the 2 all elements
to the 2 all elements

2 years 前

已解决


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

2 years 前

已解决


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

2 years 前

已解决


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.

2 years 前

已解决


Magic is simple (for beginners)
Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.

2 years 前

已解决


Make a random, non-repeating vector.
This is a basic MATLAB operation. It is for instructional purposes. --- If you want to get a random permutation of integer...

2 years 前

已解决


Number of 1s in a binary string
Find the number of 1s in the given binary string. Example. If the input string is '1100101', the output is 4. If the input stri...

2 years 前

已解决


Return the first and last characters of a character array
Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...

2 years 前

加载更多