문제를 풀었습니다


Remnant

대략 2개월 전

문제를 풀었습니다


imaginary

대략 2개월 전

문제를 풀었습니다


Insert zeros

대략 2개월 전

문제를 풀었습니다


find the height

대략 2개월 전

문제를 풀었습니다


Factorial

대략 2개월 전

문제를 풀었습니다


Size

대략 2개월 전

문제를 풀었습니다


Create a vector of n alternating ones and minus ones (★★)

대략 2개월 전

문제를 풀었습니다


Make a checkerboard matrix (★★★★★)
(copy of Prob. 4) Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1...

대략 2개월 전

문제를 풀었습니다


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]

대략 2개월 전

문제를 풀었습니다


Replicate elements in vectors (★★★)
(copy of Prob 867) Replicate each element of a row vector (with NaN) a constant number of times. Examples n=2, A=[1 2...

대략 2개월 전

문제를 풀었습니다


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

대략 2개월 전

문제를 풀었습니다


Sum of elements of a vector (★★★)
Given any vector x = [x1, x2, x3, ... xn], compute the sum of its elements. Thus, if x = [ 1 3 -2 5 ], then the sum of its el...

대략 2개월 전

문제를 풀었습니다


Prime number check (★★)
One way to see if a number x is prime is to compute the remainders obtained when dividing x by all integers from 2 to √(x). If x...

대략 2개월 전

문제를 풀었습니다


Create times-tables (★★★)
(copy of prob 33) At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 ti...

대략 2개월 전

문제를 풀었습니다


Doubling elements in a vector (★★)
(copy of prob. 1024) Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] t...

대략 2개월 전

문제를 풀었습니다


Reindex a vector (★★)
(copy of Prob. 676) You are given two vectors of equal length. Vector N has numeric values (no Inf or NaN) while vector IDX h...

대략 2개월 전

문제를 풀었습니다


Average of corner elements of a matrix (★★)
(copy of prob 2235) Calculate the average of corner elements of a matrix. e.g. x=[1 2 3; 4 5 6; 7 8 9;] avg = (1+3+7+9)...

대략 2개월 전

문제를 풀었습니다


Generate a vector which contains a pyramid pattern (★★★★)
Generate a vector that contains terms that follows a pyramid pattern up to the nth row: 1 2 2 3 3 3 4 4 4 4 ...

대략 2개월 전

문제를 풀었습니다


PEMDAS test (★★)
Create the function that will return the following expression for x and y. <<https://i.ibb.co/RHWyzrv/Code-Cogs-Eqn-1.gif>> ...

대략 2개월 전

문제를 풀었습니다


Surface area of a sphere
Given the radius of a sphere, find it's Surface area

대략 2개월 전

문제를 풀었습니다


Surface area of a cone

대략 2개월 전

문제를 풀었습니다


Factorize uniquely! (★★)

대략 2개월 전

문제를 풀었습니다


Remove the row average (★★★)
(copy of Prob. 963) Given a 2-d matrix, remove the row average from each row. Your solution MUST be vectorized. The solut...

대략 2개월 전

문제를 풀었습니다


Variance computation (★)
Given a vector x with several values, compute the variance, whose formula is given by: <<https://i.imgur.com/Wg95KBE.gif>> ...

대략 2개월 전

문제를 풀었습니다


Vector of digits (★★)
Given a positive integer x, construct a vector y with all the digits of x in the order of appearance in x. Thus, if x = 172...

대략 2개월 전

문제를 풀었습니다


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

대략 2개월 전

문제를 풀었습니다


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

대략 2개월 전

문제를 풀었습니다


Corresponding ASCII code.
Given the number, the output will show the corresponding ASCII code.

대략 2개월 전

문제를 풀었습니다


Vector with a repeated entry
Create a row vector of length n, filled with 4's. For example, if n = 3, output = [4 4 4]

대략 2개월 전

문제를 풀었습니다


Sum of terms in a series 1 (★★★)
Given x and n, compute the following sum: |x|+|x|^(1/2)+|x|^(1/3)+|x|^(1/4)+|x|^(1/5) ... + |x|^(1/n) where ||x|| indica...

대략 2개월 전

더 보기