문제를 풀었습니다


Square wave average calculation
Given its peak and duty cycle, calculate avg value of square wave

거의 4년 전

문제를 풀었습니다


Find max prime number
Given integer number n. Find the max prime number (mpn) that smaller than or equal to n. Example: n = 10 --> mpn = 7

거의 4년 전

문제를 풀었습니다


Find hen's weight.
If hen weights x kilos on two legs, how much does it weights on one leg? Output the result.

거의 4년 전

문제를 풀었습니다


counting groups!
This problem is about counting groups. Example If you have x: x = [0.8 0.8 0.8 0.3 0.3 0.4 0.5 0.6 0.6 0.9] then a...

거의 4년 전

문제를 풀었습니다


Number of problems
No, you don't read it wrong: this assignment is to return the number of this problem (and not the problem of this number).

거의 4년 전

문제를 풀었습니다


Create the following sequence : 0 1 1 4 9 25 64 169 ...
The sequence 0, 1, 1, 4, 9, 25, 64, 169, ... represents the square of the sequence of Fibonacci numbers. Let n repres...

거의 4년 전

문제를 풀었습니다


What day is it?
Tell me what day is it. Return the full name of the day of the week as a string. e.g. It's June 12th 2014, so your function s...

거의 4년 전

문제를 풀었습니다


Test if a matrix is symmetric
Write a logical function that returns 1 if the input matrix is symmetric and 0 otherwise.

거의 4년 전

문제를 풀었습니다


Small Riddle
Mr. Smith has two children. If the older child is a boy, what are the odds that the other child is also a boy?

거의 4년 전

문제를 풀었습니다


Create logarithmically spaced values (★)
Given three numbers a,b,n with b>a, create a vector y with n logarithmic spaced values between 10^a and 10^b. Thus, if a = -2, ...

거의 4년 전

문제를 풀었습니다


RGB to CMYK
Convert an RGB code to the corresponding CMYK code for printing. The RGB input is a [1×3] double array between 0 and 1. ...

거의 4년 전

문제를 풀었습니다


free points
function y = your_fcn_name(x) y = x(1)+x(2); end

거의 4년 전

문제를 풀었습니다


Create Vector containing following elements
Create Vector containing following elements A=[pi eps NaN inf -inf flintmax];

거의 4년 전

문제를 풀었습니다


Convert to Binary Coded Decimal
Convert from decimal representation to <http://en.wikipedia.org/wiki/Binary-coded_decimal Binary Code Decimal> (or BCD) represen...

거의 4년 전

문제를 풀었습니다


Bruh
Return 'bruh'.

거의 4년 전

문제를 풀었습니다


determine amount cookies left
started with 3 cookies and you never ate any how many are left

거의 4년 전

문제를 풀었습니다


Generate n equally spaced "intervals" between -x and x (★)
Given n and x, return a list of numbers (in ascending order) that divides the interval [-x x] into n equal-length intervals. ...

거의 4년 전

문제를 풀었습니다


How to locate the position of an element in a vector without using the find function
(copy of prob 105 with test for find function) Write a function posX = *locatePos* (x,y) which returns the location o...

거의 4년 전

문제를 풀었습니다


Vector creation using linspace
Create a vector y containing n uniformly spaced values between a and b, with a < b. Use linspace.

거의 4년 전

문제를 풀었습니다


Matrix Indexing
Given a matrix A and scalars r,c,i, find the product of two elements, with the first element located at row r and column c (doub...

거의 4년 전

문제를 풀었습니다


Create a vector with n repeated values of a number x (★★)
If x=3 and n=7 then the vector y would be y=[3 3 3 3 3 3 3]

거의 4년 전

문제를 풀었습니다


Characterize fluid flow in a pipe as to laminar or turbulent
In fluid mechanics, characterizing the flow in a pipe is essential to predicting its behavior. The flow pattern can either be la...

거의 4년 전

문제를 풀었습니다


Find Logic 23

거의 4년 전

문제를 풀었습니다


Create a vector of n alternating ones and zeros (★★)
Given n, your output should be a vector y of numbers such that the first number is 1 and the numbers following it alternate betw...

거의 4년 전

문제를 풀었습니다


Find the Pattern 2

거의 4년 전

문제를 풀었습니다


Calculate the integral of the polynomial
for e.g. in = [3 2 1] out = [1 1 1 0]

거의 4년 전

문제를 풀었습니다


Select every other element of a vector (★★)
(copy of prob 6) Write a function which returns every other element of the vector passed in. That is, it returns the all odd-...

거의 4년 전

문제를 풀었습니다


Swap the first and last columns (★★)
(copy of Prob 19) Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becom...

거의 4년 전

문제를 풀었습니다


Square root of number
Square root of given number.

거의 4년 전

문제를 풀었습니다


Find the distance traveled by a car given velocity and time.
A car is traveling at a constant velocity for a specific amount of time. The function should use the two inputs, velocity and ti...

거의 4년 전

더 보기