문제를 풀었습니다


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

5년 초과 전

문제를 풀었습니다


find the logic,easy one
find the logic behind, example x=18 y=306 x=53 y=2756

5년 초과 전

문제를 풀었습니다


Problem 44444 !!! free beer everyone
just say hallelujah to solve this problem

5년 초과 전

문제를 풀었습니다


Calculate the answer to life the universe and everything
<https://en.wikipedia.org/wiki/42_(number)>

5년 초과 전

문제를 풀었습니다


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

5년 초과 전

문제를 풀었습니다


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

5년 초과 전

문제를 풀었습니다


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

5년 초과 전

문제를 풀었습니다


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

5년 초과 전

문제를 풀었습니다


Matrix with increasing numbers (★★★★)

5년 초과 전

문제를 풀었습니다


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

5년 초과 전

문제를 풀었습니다


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

5년 초과 전

문제를 풀었습니다


Vector raised to a power, element-wise (★)
Given a vector A and a number x, raise each element of the vector to the power of x. Thus, if A = [2 5 7 1] and x = 0.5, then ...

5년 초과 전

문제를 풀었습니다


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

5년 초과 전

문제를 풀었습니다


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

5년 초과 전

문제를 풀었습니다


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

5년 초과 전

문제를 풀었습니다


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

5년 초과 전

문제를 풀었습니다


Calculate the volume of the cube.
Example n = 3; a = volume(n); a = 27

5년 초과 전

문제를 풀었습니다


Guess
A random number between 1 and 10 is created for the variable y. Guess what its value is.

5년 초과 전

문제를 풀었습니다


Remove multiples of N
in the vector x remove all multiples of N. x = [1 2 3 4 5 6]; N = 2; Then y = [1 3 5];

5년 초과 전

문제를 풀었습니다


Calculate the logarithm of number
Calculate the logarithm of number x

5년 초과 전

문제를 풀었습니다


UICBioE240 problem 1.12
The mathematical quantities e^x, ln x, and log x are calculated in Matlab using the expressions exp(x), log(x), and log10(x), re...

5년 초과 전

문제를 풀었습니다


Find Logic 19

5년 초과 전

문제를 풀었습니다


Concatenated roots
Which is the value of this infinte concatenated roots? <<https://s27.postimg.org/i4hkin7xf/Code_Cogs_Eqn.gif>> Note: If ...

5년 초과 전

문제를 풀었습니다


Church Encoding
Church encoded numeral is a function which takes two arguments _f_ and _x_ and applies _f_ to _x_ several times. For example,...

5년 초과 전

문제를 풀었습니다


Airline Ticket Mod7 Checksum
There are 13 digits in an airline ticket number. If an airline ticket number is valid, the 13th digit should be the remainder of...

5년 초과 전

문제를 풀었습니다


Accurate Division
Given three integers x, y and d, return x/y (as a string) to d significant digits. Remove leading and trailing zeros. Example...

5년 초과 전

문제를 풀었습니다


Raise a polynomial to a power
In Matlab, polynomials are represented by a vector of coefficients. For example, the polynomial p=a*x^2 + b*x + c is represente...

5년 초과 전

문제를 풀었습니다


Subtract integers and add doubles
Create a function that subtracts a from b if a and b are integers and adds them if they are floats.

5년 초과 전

문제를 풀었습니다


modular arithmetic
Given three integers a,b and c, find the remainder when a^b is divided by c. Here, a^b will be well beyond the largest 64 bit in...

5년 초과 전

문제를 풀었습니다


Converting Decimal to Binary
Given a decimal number that may include a fractional component, convert it into binary representation. The numbers you are given...

5년 초과 전

더 보기