문제를 풀었습니다


Change Vector Value
Change the element of the vector with respect to the element of the direction vector If the element of the direction vecto...

5년 초과 전

문제를 풀었습니다


Rearrange the given matrix to have all its zeros climb up to the top of each column - using for loops.
Given a matrix x, *using loops only* return a matrix y, in which all the zeros have "climbed" up to the top. That is, any zeros ...

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

문제를 풀었습니다


0, 2, 0, -2, 0, 2, 0, -2, ...
Generate the first n terms of a periodic sequence defined as f(x) = 0, 2, 0, -2, 0, 2, 0, -2, ..., for x = 1, 2, 3, 4, 5, 6...

5년 초과 전

문제를 풀었습니다


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

5년 초과 전

문제를 풀었습니다


remove every row&col for every nan
for a given matrix, remove the row and column of every nan. Example x=[1 2 NaN 4 5 6 7 8 ...

5년 초과 전

문제를 풀었습니다


Increment up an input vector
Increment up an input vector by adding the indices to the vector values. For example, if an input vector is [3, 2, 6, 1, 6], the...

5년 초과 전

문제를 풀었습니다


Where is the number that you want to find?
For a given matrix A, find where the input number x appears. Do this task by returning the vector which contains the row and th...

5년 초과 전

문제를 풀었습니다


Generate the Matrix!
Given n, generate the following matrix: a = [ n n-1 n-2 ... 2 1; n-1 n-1 n-2 ... 2 1; n-2 n-2 n-2 ... 2 1;...

5년 초과 전

문제를 풀었습니다


index of n^2 in magic(n)
input=5 magic matrix 17 24 1 8 15 23 5 7 14 16 4 6 13 20 22 10 ...

5년 초과 전

문제를 풀었습니다


union without repitition
Let a = [9 9 9 9 9 9 8 8 8 8 7 7 7 6 6 6 5 5 4 2 1] b = [1 1 1 3 3 3 3 3 4 4 4 4 4 10 10 10] Output should be [9 8...

5년 초과 전

문제를 풀었습니다


Alternately upper-lower case
Modify the string to alternate between upper and lower case. For example, s='achyuta' output='AcHyUtA'

5년 초과 전

문제를 풀었습니다


interesting center of magic matrix
output the centre of magic matrix of n input=7; output=25

5년 초과 전

문제를 풀었습니다


Is It a Palindrome?
Given a string or array, determine if it is a palindrome.

5년 초과 전

문제를 풀었습니다


Calculate the height of an object dropped from the sky
Assume that an object is dropped from 1000 meters above the surface of the earth at time t=0. The object is dropped such that t...

5년 초과 전

문제를 풀었습니다


The sum of individual numbers...
Well this one is taking a number and then summing the individual parts till you reach a value of 1, 2, 3, 4, 5, 6, 7, 8, 9, or 0...

5년 초과 전

문제를 풀었습니다


Create Vector containing following elements
Create Vector containing following elements A=[pi eps NaN inf -inf flintmax];

5년 초과 전

문제를 풀었습니다


a usless problem

5년 초과 전

문제를 풀었습니다


Array GCD
* Find Greatest Common Divisor in a given array * Function Template: function ans = arraygcd(a) % a=[45 15 200 ...

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

문제를 풀었습니다


Get 1-4-3-4-4
Get the value of the indices in the title and assign it to an array

5년 초과 전

문제를 풀었습니다


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 1 3 6 9; 0 0 1 3 6; 0 0 0 1...

5년 초과 전

문제를 풀었습니다


Freebies anyone? No!!!!
Feel free to copy paste all the tests and voila you solved the problem

5년 초과 전

문제를 풀었습니다


Annoying population
Every year the number of annoying persons in the office triples Found the population, given a(0) and t

5년 초과 전

문제를 풀었습니다


Create tangent function out of sin and cos
Please don't use tan(x) directly

5년 초과 전

문제를 풀었습니다


Surface area of a cone

5년 초과 전

문제를 풀었습니다


find the answer

5년 초과 전

문제를 풀었습니다


Linear system of equations
Solve the system of equations in three variables.

5년 초과 전

문제를 풀었습니다


Basic commands - Greatest common divisor
Please write a function, which, will put as output greatest common divisor. Example: A = [-5 17; 10 0];...

5년 초과 전

문제를 풀었습니다


Basics - not so easy division
Please make a function whcih divides x/y, but pay attention for some exceptions with NaN,0,Inf. Sometimes return "ERROR" instead...

5년 초과 전

더 보기