문제를 풀었습니다


Number Puzzles - 009

거의 4년 전

문제를 풀었습니다


10% Discount

거의 4년 전

문제를 풀었습니다


find "greatest common divisor" of two integer value
A function to find Greatest Common Divisor of two integer input E.G. x=-18 y=96 output should be +6 x=-18; y=96; >>your...

거의 4년 전

문제를 풀었습니다


Isothermal Expansion
Given the initial pressure and volume of an ideal gas, calculate the new volume, given the new pressure. Hint: <https://en.wi...

거의 4년 전

문제를 풀었습니다


Mean Square Error

거의 4년 전

문제를 풀었습니다


Find the slope of a line that passes through two vectors
Given two vectors p1 and p2, return the slope of a line that passes through p1 and p2. Examples: Input [p1,p2] = deal([0,1],[...

거의 4년 전

문제를 풀었습니다


Summy's odd sum

거의 4년 전

문제를 풀었습니다


Intercambiar columnas - UC3M

거의 4년 전

문제를 풀었습니다


Swap Characters of a Single Word
Description: In the given input word, convert the lower case to upper case and vice versa. A to a, a to A ... Example: 'Matl...

거의 4년 전

문제를 풀었습니다


Check if a matrix Diagonal is equal to its secondary diagonal
Your function should return True if the secondary diagonal is equal to diagonal, and False otherwise. Eg: M = [1 2 1 ...

거의 4년 전

문제를 풀었습니다


Remove Lower Case Letters
Example MEMOry --> MEMO IMPlEMeNtATiON --> IMPEMNATON

거의 4년 전

문제를 풀었습니다


Count of Unique Elements of a Vector
Count the number of times each unique element appears in a vector. Example: Input x = [2 9 1 2 4 9 2] Output y = [1 1; 2 3; 4...

거의 4년 전

문제를 풀었습니다


Get the n-th rand number with given seed
Given seed s, return the n-th rand number using rand(). Round the answer with 4 digits. n is a postive integer.

거의 4년 전

문제를 풀었습니다


Find the summation, mean, median, mode and standard deviation of a given array.
An array is given. Find out the summation, mean, median, mode and standard deviation of a given array. If x=[1,2,2,3,3,3,4,4,4,...

거의 4년 전

문제를 풀었습니다


Remove Upper Case Letters
Example Matlab --> atlab proBlem --> prolem Enter --> nter

거의 4년 전

문제를 풀었습니다


Given A4 sizes find A3's long side
I think you know the relation between A3 and A4 paper so givens are sides of A4 x1=long side of A4 y1=short side of A4 y2 is ...

거의 4년 전

문제를 풀었습니다


Define the operators of function_handles
Suppose f and g are function_handles, try to define f+g,f-g,f*g and f/g. e.g. if f = @(x)x and g = @(x)x+1 ...

거의 4년 전

문제를 풀었습니다


Dice roll - opposite faces
For this problem, you will be provided with the values of a dice roll (regular six-sided dice). The number of dice will be at le...

거의 4년 전

문제를 풀었습니다


given number is power of n or not?
Check weather The input is power of n or not? for example x=8,n=2 --> true x=6,n=2 --> false

거의 4년 전

문제를 풀었습니다


give-nth-decimal-place-of-pi up to 100 digits
max 100th place after the decimal point this is upgrade problem of 142

거의 4년 전

문제를 풀었습니다


How to get the additive inverse of a uint8.
Given x as a uint8 find the additive inverse y.

거의 4년 전

문제를 풀었습니다


Find the solution of algebraic equation
Find the solution of algebraic equation of the form an*x^n + a(n-1)*x^(n-1) + (an-2)*x^(n-2)+...... a2*x^2 + a1*x^1 + a0 = 0; ...

거의 4년 전

문제를 풀었습니다


Accumulate Cells
Given a combining function, a cell array, and an initial value, accumulate the result. For example, accumcell(@plus,{1,...

거의 4년 전

문제를 풀었습니다


expand intervals
You're given a row vector of an even number of monotonically increasing integers. Each pair of consecutive integers is the lower...

거의 4년 전

문제를 풀었습니다


middleAsColumn: Return all but first and last element as a column vector
Given input A, return all but the first and last elements, arranged as a column vector. (I.e., all dimensions after the first s...

거의 4년 전

문제를 풀었습니다


Matrix indexing with two vectors of indices
Given a matrix M and two index vectors a and b, return a row vector x where x(i) = M(a(i),b(i)).

거의 4년 전

문제를 풀었습니다


Random Problem14 - Multiply a vector by a scalar of 2
Multiply a vector by a scalar of 2

거의 4년 전

문제를 풀었습니다


RandomProblem13-Cube a number
Cube a number

거의 4년 전

문제를 풀었습니다


Random Problem12- Squaring a number
Square the number

거의 4년 전

문제를 풀었습니다


Calculate the sum of elements of n*n Hilbert matrix.
Calculate the sum of elements of n*n Hilbert matrix. For example, for n=5: HilbertMatrix = [1.0000 0.5000 0.333...

거의 4년 전

더 보기