Timea Nagy
Followers: 0 Following: 0
Feeds
문제를 풀었습니다
radius of a spherical planet
You just measured its surface area, that is the input.
거의 2년 전
문제를 풀었습니다
Given a square and a circle, please decide whether the square covers more area.
You know the side of a square and the diameter of a circle, please decide whether the square covers more area.
거의 2년 전
문제를 풀었습니다
Perimeter of a semicircle
Given the diameter d, find the perimeter of a semicircle
거의 2년 전
문제를 풀었습니다
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년 전
문제를 풀었습니다
Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...
거의 2년 전
문제를 풀었습니다
Matlab Basics - Rounding II
Write a script to round a variable x to 3 decimal places: e.g. x = 2.3456 --> y = 2.346
거의 2년 전
문제를 풀었습니다
MATLAB Basic: rounding
Do rounding near to zero Example: -8.8, answer -8 +8.1 answer 8
거의 2년 전
문제를 풀었습니다
Given an unsigned integer x, find the largest y by rearranging the bits in x
Given an unsigned integer x, find the largest y by rearranging the bits in x. Example: Input x = 10 Output y is 12 ...
거의 2년 전
문제를 풀었습니다
Arrange vector in ascending order
Arrange a given vector in ascending order. input = [4 5 1 2 9]; output = [1 2 4 5 9];
거의 2년 전
문제를 풀었습니다
Divisible by 2
This is the first problem in a set of "divisible by x" problems. You will be provided a number as a string and the function you ...
거의 2년 전
문제를 풀었습니다
Approximation of Pi
Pi (divided by 4) can be approximated by the following infinite series: pi/4 = 1 - 1/3 + 1/5 - 1/7 + ... For a given numbe...
거의 2년 전
문제를 풀었습니다
Generate a NaN...on purpose
The goal is to create a function that will return a single "NaN" without using the nan function. I am interested to see how many...
거의 2년 전
문제를 풀었습니다
Find the nearest integer
Given a vector of integers and a real number find the closest integer. EX: >> a = [2 4 5 6 8 10]; >> b = 4.6; >> nea...
거의 2년 전
문제를 풀었습니다
Find the hypotenuse
Given a and b (the two sides of a right-triangle), find c, the hypotenuse.
거의 2년 전
문제를 풀었습니다
Create a Matrix of Zeros
Given an input x, create a square matrix y of zeros with x rows and x columns.
거의 2년 전
문제를 풀었습니다
Replace odd number in given matrix by zero
Replace the odd numbers in a given matrix with zero. Example A = [ 17 24 1 8 15 23 5 7 ...
거의 2년 전
문제를 풀었습니다
Number of odd and even elements within matrix
Input(m) - any matrix with integers Output(n) - n(1)=number of odd elements, n(2)=number of even elements Example: * m=...
거의 2년 전
문제를 풀었습니다
Number of digits in an integer
Specifies how many digits in a given integer. Example: in=100 ==> out=3
거의 2년 전
문제를 풀었습니다
Add two numbers
Calculate the sum of two numbers. Example input = [2 3] output = 5
거의 2년 전
문제를 풀었습니다
Determine Whether an array is empty
Input a matrix x, output y is TRUE if x is empty, otherwise FALSE.
거의 2년 전
문제를 풀었습니다
sum of non-primes
The sum of the non-primes no larger than 10 is 1+4+6+8+9+10=38 Find the sum of all the positive non-prime integers that do no...
거의 2년 전
문제를 풀었습니다
Sum of the Matrix Elements
Add up all the elements in a NxM matrix where N signifies the number of the rows and M signifies the number of the columns. E...
거의 2년 전
문제를 풀었습니다
Area of a Square
Inside a square is a circle with radius r. What is the area of the square?
거의 2년 전
문제를 풀었습니다
Create a square matrix of zeros of even order
Create a square matrix of zeros of even order
거의 2년 전