문제를 풀었습니다


Normalize by maximum
Subtract the maximum value in a column from the corresponding columns of a matrix.

5년 초과 전

문제를 풀었습니다


Polynomial evaluation
Compute the value of a polynomial of degree n with coeffcients in vector a, at value x. p(x)=a(1)+a(2)x+a(3)x^2+...+a(n+1)x...

5년 초과 전

문제를 풀었습니다


A shooting competition
In a shooting competition, the target is a square of side L containing a circle of radius R<=L/2. A player scores one point if h...

5년 초과 전

문제를 풀었습니다


Bleed non-zeros to the right
What a title! Yet, it says what I mean. You get a vector, some values and a lot of zeroes. Every zero is replaced by the firs...

5년 초과 전

문제를 풀었습니다


Check availability of a number in an array
An array is given A=[1 2 3 4 5 7 8 9 10]. Find whether the number n is present in given array or not. If the number n is prese...

5년 초과 전

문제를 풀었습니다


Sum of self power series
The series, 1^1,2^2,3^3,4^4,.... Find the sum of such series when x terms are given.

5년 초과 전

문제를 풀었습니다


Combination of Vectors
Return a combination of vectors x1, x2 based on y1, y2 per: x(j) = 0 if y1(j) < y2(j) x(j) = x1(j) if y1(j)...

5년 초과 전

문제를 풀었습니다


Sum of first n terms of a harmonic progression
Given inputs a, d and n, return the sum of the first n terms of the harmonic progression a, a/(1+d), a/(1+2d), a/(1+3d),....

5년 초과 전

문제를 풀었습니다


Billiards
Considering there are 15 pool balls, (b), in the game of pool, and given a radius, (r). What is the volume, (V), of a rack in th...

5년 초과 전

문제를 풀었습니다


Find the Pattern
Find the pattern between input and output. Write a function that gives the correct output for any input. *Hint: magic*

5년 초과 전

문제를 풀었습니다


Matrix game: Winner takes all
Given a matrix A, return a new matrix of the same size in which the biggest element of each column in A takes 1, and 0 for all t...

5년 초과 전

문제를 풀었습니다


number of groups
In a classroom, *n* students work on a special project and the other students work in groups of five. If there are 18 students i...

5년 초과 전

문제를 풀었습니다


My Problem, Find the square of the horizontal concatenation of the third and fifth elements of a vector.
given the 1x5 vector x, y must be the square of the horizontal concatenation of the third and fifth elements. So, if x = [1 1 1 ...

5년 초과 전

문제를 풀었습니다


Calculator spelling - Numbers to Letters
Using the numbers on a calculator, and rotating the display 180 degrees, many words can be spelled. In particular, the following...

5년 초과 전

문제를 풀었습니다


Find offset of given matrix element from first matrix element
Given matrix m and an element of that matrix, return the offset from its first element. e.g. m=[11 2 34; 40 51 6; 87 8 109] el...

5년 초과 전

문제를 풀었습니다


User defined nextpow function
Create a function which will take 2 arguments as n and x, and return y, where, n^y >= abs(x). [ Similar to builtin "nextpow2" fu...

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년 초과 전

문제를 풀었습니다


Make a Plot with Functions
Make a plot and test

5년 초과 전

문제를 풀었습니다


S-T-R-E-T-C-H I-T O-U-T
You will be given a row of numbers (x), and a single number (n). Your job is to write a script that will stretch out the row of...

5년 초과 전

문제를 풀었습니다


Basic Addition

5년 초과 전

문제를 풀었습니다


Divide the Least Common Multiple by the Greatest Common Divisor of two numbers
Divide the Least Common Multiple by the Greatest Common Divisor of two numbers. For example, for x=12345 and y=54321, the answer...

5년 초과 전

문제를 풀었습니다


find location of indexes

5년 초과 전

문제를 풀었습니다


Vector Linear sum: (p1-m1)V1+(p2-m2)V2+...(pK-mk)Vk
Calculate the sum of a Vector times coefficients expressed as two strings. Example: Normal representation [ a b c ], [ p1 ...

5년 초과 전

문제를 풀었습니다


remove numbers from a string
check the given string for any numbers.in case one is found,remove it.but the two portions should be separated. if more than one...

5년 초과 전

문제를 풀었습니다


generate nth pentatope number
https://en.wikipedia.org/wiki/Pentatope_number

5년 초과 전

문제를 풀었습니다


Modified Upper Matrix Mock
Given a vector v=[1 3 6 9 11], turn it into a matrix 'ramp' like so: m=[1 3 6 9 11; 0 3 6 9 11; 0 0 6 9 11; 0 0 0 9 11; 0 0 0...

5년 초과 전

문제를 풀었습니다


Remove DC
Input x is the sampled signal vector, may have both AC and DC components. Output y should not contain any DC component. Examp...

5년 초과 전

문제를 풀었습니다


Find the biggest digit in a matrix
Write a function to find the biggest digit in a matrix; input -> a matrix output -> a digit For example; [12; 47;...

5년 초과 전

문제를 풀었습니다


Homemade: Control Charts
This problem is a simple version of control charts in statistics. Intput consists from 30 or more observations. * Upper limi...

5년 초과 전

문제를 풀었습니다


Make visible max values
Make visible maximum values of rows input = [1 2 3 4 5; 6 9 8 2 1; 2 1 4 5 8; 1 9 7 9 2]; ...

5년 초과 전

더 보기