문제를 풀었습니다


Draw a '5' in a zero matrix!

대략 5년 전

문제를 풀었습니다


Special matrix
Make a square matrix with this shape. For n=4 M = 1 1 0 0 1 0 1 0 0 1 0 ...

대략 5년 전

문제를 풀었습니다


Pattern Sum
Write a function which receives two single digit positive integers, (k and m) as parameters and calculates the total sum as: k...

대략 5년 전

문제를 풀었습니다


Remove the air bubbles from a vector
_*A reduced version of Problem 112*_ Given a column vector v, return a vector w in which all the zeros have "bubbled" to the ...

대략 5년 전

문제를 풀었습니다


Detect a number and replace with two NaN's
Write code which replaces the number 1 with two NaNs. Example X = [ 1 2 NaN 4 1 3 7 NaN 1 4 NaN 2] ...

대략 5년 전

문제를 풀었습니다


Multiples of a Number in a Given Range
Given an integer factor _f_ and a range defined by _xlow_ and _xhigh_ inclusive, return a vector of the multiples of _f_ that fa...

대략 5년 전

문제를 풀었습니다


Proper Factors
Generate the proper factors of input integer _x_ and return them in ascending order. For more information on proper factors, ref...

대략 5년 전

문제를 풀었습니다


Make a vector of prime numbers
Input(n) - length of vector with prime numbers Output(v) - vector of prime numbers Example: * n=1; v=2 * n=3; v=[2 3 5...

대략 5년 전

문제를 풀었습니다


Is My Wife Wrong?
Answer the question. (see also <http://www.mathworks.com/matlabcentral/cody/problems/149-is-my-wife-right Problem 149: Is my ...

대략 5년 전

문제를 풀었습니다


Negative Infinity
Round the given array a towards negative infinity.

대략 5년 전

문제를 풀었습니다


Volume of Cylinder
Find the volume of a cylinder

대략 5년 전

문제를 풀었습니다


Watt
Ampere x Volt = Watt

대략 5년 전

문제를 풀었습니다


Find the y=(1:x)
Look at the question

대략 5년 전

문제를 풀었습니다


means
Calculate the arithmetic, the geometric and the harmonic mean of a given vector (with positive elements) and return them in a ve...

대략 5년 전

문제를 풀었습니다


Return fibonacci sequence do not use loop and condition
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: ...

대략 5년 전

문제를 풀었습니다


select the primes of a vector
Find the prime numbers in a vector

대략 5년 전

문제를 풀었습니다


Building matrices
If you have matrix A, create matrix B using matrix A as an "element" A = [1 2 3 4; 5 6 7 8...

대략 5년 전

문제를 풀었습니다


Fermat's last theorem - again
For a given integer n, express it as a sum of two squares if possible. Return empty matrix otherwise. Solution may not be unique...

대략 5년 전

문제를 풀었습니다


center of mass
R is a given matrix with size [n,2]. R(i,:) is interpreted as the 2D-position of a mass point with mass i. Calculate the center ...

대략 5년 전

문제를 풀었습니다


Sum of a geometric series
Give the sum of the first 'n' terms of a geometric series, given 'a' as the first term and 'r' as the ratio.

대략 5년 전

문제를 풀었습니다


Summy's odd sum

대략 5년 전

문제를 풀었습니다


Sum of integers numbers
Sum of the numbers from 1 to 100

대략 5년 전

문제를 풀었습니다


Replace Nonzero Numbers with 1
Given the matrix x, return the matrix y with non zero elements replaced with 1. Example: Input x = [ 1 2 0 0 0 ...

대략 5년 전

문제를 풀었습니다


Summy's even sum

대략 5년 전

문제를 풀었습니다


Summing Rows and Columns
Create a matrix y of size (n+1) whose last column's elements are the summation of the elements of all the other columns and last...

대략 5년 전

문제를 풀었습니다


Find Sum of array

대략 5년 전

문제를 풀었습니다


Row avg

대략 5년 전

문제를 풀었습니다


Solve The Equation
The coefficients of a system of equations are given in two vectors, x1 and x2. Write a function to solve the equation and return...

대략 5년 전

문제를 풀었습니다


Euler–Mascheroni constant
Approximate the Euler-Mascheroni constant using the series representation gamma_n=\sum_{k=1}^{n} [1/k-ln(1+1/k)] Calculat...

대략 5년 전

더 보기