해결됨

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

약 1년 전

해결됨

Transpose
Write a MATLAB script in order to convert a random length row vector (v) into a column vector.

약 1년 전

해결됨

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

약 1년 전

해결됨

Matlab Basics - Absolute Value
Write a script that returns the absolute value of the elements in x e.g. x = [-1 -2 -3 -4] --> y = [1 2 3 4]

약 1년 전

해결됨

Project Euler: Problem 6, Natural numbers, squares and sums.
The sum of the squares of the first ten natural numbers is, 1^2 + 2^2 + ... + 10^2 = 385 The square of the sum of the first ...

약 1년 전

해결됨

Multiply by 3
Given the variable x as your input, multiply it by three and put the result in y.

약 1년 전

해결됨

Y=X
Given an input variable x, output a variable y that is equal in value to x. Example: Input x = 1 Output y is 1 Inp...

약 1년 전

해결됨

square of a number
find square of a given number

약 1년 전

해결됨

determine the sum of the squares
if x = 4, the solution will be: y = 1^2+2^2+3^2+4^2=1+4+9+16 = 30.

약 1년 전

해결됨

Area of square
Find the area of a square whose diagonal length is given as x.

약 1년 전

해결됨

Make a 1 hot vector
Make a vector of length _N_ that consists of all zeros except at index _k_, where it has the value 1. Example: Input ...

약 1년 전

해결됨

Is this triangle right-angled?
Given three positive numbers a, b, c, where c is the largest number, return *true* if the triangle with sides a, b and c is righ...

약 1년 전

해결됨

Tell me the slope
Tell me the slope, given a vector with horizontal run first and vertical rise next. Example input: x = [10 2];

약 1년 전

해결됨

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

약 1년 전

해결됨

Is the input divisible by 3?
Return true if the input is divisible by 3 and false if not.

약 1년 전

해결됨

sum of first 'n' terms
Given n=10, find the sum of first 'n' terms Example: If n=10, then x=1,2,3,4,5,6,7,8,9,10. The sum of these n=10 terms is 55...

약 1년 전

해결됨

Project Euler: Problem 10, Sum of Primes
The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below the input, N. Thank you <http:/...

약 1년 전

해결됨

Evaluating a polynomial
Given the following polynomial and the value for x, determine y. y = 3x^5 – x^3 + 8x – 3 Example x = 1 y = 3 - 1 +...

약 1년 전

해결됨

Matlab Basics - y as a function of x
Write a function to calculate y as a function of x, such that y = 6x^2 + 5x - 2

약 1년 전

해결됨

Volume of a box
Given a box with a length a, width b, and height c. Solve the volume of the box.

약 1년 전

해결됨

given number is power of n or not?
Check weather The input is power of n or not? for example x=8,n=2 --> true x=6,n=2 --> false

약 1년 전

해결됨

vectors counting by 5
Create a vector with numbers from x_min to x_max in increments of 5.

약 1년 전

해결됨

row removal
Remove the nth row from input matrix M and return the resulting matrix in output N.

약 1년 전

해결됨

modulus of a number
find the modulus of a given number

약 1년 전

해결됨

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

약 1년 전

해결됨

Matlab Basics - Rounding I
Write a script to round x DOWN to the next lowest integer: e.g. x = 2.3 --> x = 2 also: x = 2.7 --> x = 2

약 1년 전

해결됨

raise 1/3
Raise a number to 1/3 power.

약 1년 전

해결됨

Is it prime?
Given a number, check whether it is prime or not. If prime output is true, otherwise false.

약 1년 전

해결됨

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

약 1년 전

해결됨

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

약 1년 전