문제를 풀었습니다


Remove DC
Input x is the sampled signal vector, may have both AC and DC components. Output y should not contain any DC component. Examp...

9년 초과 전

문제를 풀었습니다


Arithmetic array operations
* Add x to each element of array temperatureReadings.

9년 초과 전

문제를 풀었습니다


Indexing the array: Shift right with variable sized arrays
* Write a statement to shift the array contents 1 position to the left. * Assign the rightmost element with -1. Ex: [12, 85...

9년 초과 전

문제를 풀었습니다


Nth root.
* Assign outValues with the nth root of the inValues, the root is specified by rootValue

9년 초과 전

문제를 풀었습니다


Back to basics 4 - Search Path
Covering some basic topics I haven't seen elsewhere on Cody. Return a string that is the user's portion of the current search...

9년 초과 전

문제를 풀었습니다


Column arrays: Transpose a row array
* Construct a row array countValues with elements 1 to endValue, using the colon operator. * Transpose countValues to result in...

9년 초과 전

문제를 풀었습니다


Array resizing: Removing elements
* Remove elements 2, 4, and 6 from row array pendingTasks

9년 초과 전

문제를 풀었습니다


Remove NaN ?
input -> matrix (n*m) with at least one element equal to NaN; output -> matrix(p*m), the same matrix where we deleted the enti...

9년 초과 전

문제를 풀었습니다


Logic array: Identifying qualifying times
Create a logic array qualifyingIndex with true for any location where the runner is male with a running time less than 8.2. Row ...

9년 초과 전

문제를 풀었습니다


Variable sized row arrays
* Reverse the contents of row array mileMarkers

9년 초과 전

문제를 풀었습니다


give nth decimal place of pi
max 15th place after the decimal point is ok for now

9년 초과 전

문제를 풀었습니다


Back to basics 15 - classes
Covering some basic topics I haven't seen elsewhere on Cody. Return the class of the input variable.

9년 초과 전

문제를 풀었습니다


Linear-spaced points array
* Construct a row array plotPoints with 5 values that are spaced linearly from lowValue to highValue. Ex: If lowValue is 1 and ...

9년 초과 전

문제를 풀었습니다


Integer indexing array: Reverse subsets
Construct an indexing array copySubset so that the statement reversedOrder = origOrder(copySubset); results in a row array begin...

9년 초과 전

문제를 풀었습니다


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

9년 초과 전

문제를 풀었습니다


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

9년 초과 전

문제를 풀었습니다


Element-wise division
* Assign row array weightKilo with the corresponding weight in kilograms. Use the following conversion: kg = lb / 2.2

9년 초과 전

문제를 풀었습니다


Relational operators and row arrays: Overweight baggage
Create a logical indexing array overweightBaggage with true in each location where the corresponding baggageWeight is greater th...

9년 초과 전

문제를 풀었습니다


pressure to dB?
given x ratio of pressure, find corresponding y dB

9년 초과 전

문제를 풀었습니다


Tree Height
Assign treeHeight with the tree height given the shadow length and angle of elevation. Simple geometry can compute the heigh...

9년 초과 전

문제를 풀었습니다


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

9년 초과 전

문제를 풀었습니다


Logical indexing: High scores
Row array gameScores contains all player scores. Construct a row array highScores than contains all player scores greater than 5...

9년 초과 전

문제를 풀었습니다


Solving Quadratic Equations (Version 1)
Quadratic equations have the form: ax^2 + bx + c = 0. Example: x^2 + 3x + 2 = 0, where a = 1, b = 3, and c = 2. The equation has...

9년 초과 전

문제를 풀었습니다


Who knows the last digit of pi?
There is only one man who knows the last digit of pi, who is that man? Give the name of that man, who, by popular believe, can ...

9년 초과 전

문제를 풀었습니다


Multiply a column by a row
* Given a column vector C and and a row vector R. * Output a matrix M. * Every column of M equals to C multiplied by correspon...

9년 초과 전

문제를 풀었습니다


Function definition: Volume of a pyramid
Define a function CalculatePyramidVolume with inputs baseLength, baseWidth, and pyramidHeight. The function returns pyramidVolum...

9년 초과 전

문제를 풀었습니다


Relational operators: Guessing game
Row array userGuess contains a sequence of user guesses. Create a logical indexing array correctGuess with true in each location...

9년 초과 전

문제를 풀었습니다


Double colon operator: Counting down
* Construct a row array countValues from startValue to endValue, elements decremented by -2 Ex: If startValue is 10 and end...

9년 초과 전

문제를 풀었습니다


Multi-line comments
* Fix the syntax errors.

9년 초과 전

문제를 풀었습니다


Declaring a character
* Assign middleInitial with the character T.

9년 초과 전

더 보기