문제를 풀었습니다


Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

7년 초과 전

문제를 풀었습니다


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

7년 초과 전

문제를 풀었습니다


Compute Fibonacci Number
Compute the _n_-th Fibonacci Number f(0) = 0, f(1) = 1, f(2) = 1, f(3) = 2, ... f(42) = 267914296

7년 초과 전

문제를 풀었습니다


Return the largest number that is adjacent to a zero
This example comes from Steve Eddins' blog: <http://blogs.mathworks.com/steve/2009/05/27/learning-lessons-from-a-one-liner/ Lear...

7년 초과 전

문제를 풀었습니다


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

7년 초과 전

문제를 풀었습니다


Prime number removal
remove all prime numbers from the input e.g. input = 1 2 3 4 5 6 7 8 9 10 11 12 ...

7년 초과 전

문제를 풀었습니다


iteration of N blank spot
we have N spot which can be blank o filled calculate the number of iteration for these spots. e.g. N=2 1- blank blank 2- bl...

7년 초과 전

문제를 풀었습니다


Calculating selling price
Cost of a Product is $x What should be the selling price if you want to gain 10%?

7년 초과 전

문제를 풀었습니다


Repeat the entries of the vector to their reference times in the vector.
e.g for input x: [ 7 3 9 5] output y: [ 7 3 3 9 9 9 5 5 5 5]

7년 초과 전

문제


Repeat the entries of the vector to their reference times in the vector.
e.g for input x: [ 7 3 9 5] output y: [ 7 3 3 9 9 9 5 5 5 5]

7년 초과 전 | 1 | 솔버 수: 46

문제를 풀었습니다


Corresponding letter to ASCII code.
Given the letter, the output will show the corresponding ASCII code.

7년 초과 전

문제를 풀었습니다


If you have matrix A, create matrix B using matrix A as an "element"
A = [1 2 3 4; 5 6 7 8] B = [1 2 3 4 1 2 3 4; 5 6 ...

7년 초과 전

문제를 풀었습니다


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] Hint: Search for the function...

7년 초과 전

문제를 풀었습니다


modulus of a number
find the modulus of a given number

7년 초과 전

문제를 풀었습니다


Find remainder when x is divided by 3
Find remainder when x is divided by 3

7년 초과 전

문제를 풀었습니다


multiply an array by its position number
You have given an array. Multiply an array by its position number

7년 초과 전

문제를 풀었습니다


Find qube root
Find the quberoot of 27

7년 초과 전

문제를 풀었습니다


Pad zero between every adjacent values of the vector.
you are given a vector x. you have to make an output vector y with zeros padded between every adjacent values of x. e.g x: ...

7년 초과 전

문제


Pad zero between every adjacent values of the vector.
you are given a vector x. you have to make an output vector y with zeros padded between every adjacent values of x. e.g x: ...

7년 초과 전 | 1 | 솔버 수: 52

문제를 풀었습니다


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

7년 초과 전

문제를 풀었습니다


find square root of a positive real number
a number given, find the square root of that number

7년 초과 전

문제를 풀었습니다


find the Area of a rectangle
length is x width is y what is the area of the rectangle?

7년 초과 전

문제를 풀었습니다


Indexing the array: Moving values
Assume sampleReadings always contains three elements. * Shift the array contents one position to the left. * The rightmost ...

7년 초과 전

문제를 풀었습니다


Concatenating arrays
* Assign studentIDs with concatenated row arrays groupA and groupB

7년 초과 전

문제를 풀었습니다


Permutations of input vector
Find and output all permutations of given vector

7년 초과 전

문제를 풀었습니다


Find minimum and maximum elements of an array
For a given array find minimum and maximum elements of an array and store minimum value in first index of output and maximum in ...

7년 초과 전

문제를 풀었습니다


Back to basics 9 - Indexed References
Covering some basic topics I haven't seen elsewhere on Cody. Given an input matrix and row and column, output the index of th...

7년 초과 전

문제를 풀었습니다


Select every other element of a matrix
Write a function called outMat = odd_idx( myMat ) that takes a matrix, myMat, as input argument and returns a matrix th...

7년 초과 전

문제를 풀었습니다


Divide by 4
Given the variable x as your input, divide it by four and put the result in y.

7년 초과 전

문제를 풀었습니다


Computing wind chill
On a windy day, a temperature of 15 degrees may feel colder, perhaps 7 degrees. The formula below calculates the "wind chill," i...

7년 초과 전

더 보기