문제를 풀었습니다


length of a vector
Find twice the length of a given vector.

대략 9년 전

문제를 풀었습니다


Stuff the Board
You have a stack of tiles to put onto an array-like playing board. Each tile has a number (always an integer), and the board var...

대략 9년 전

문제를 풀었습니다


Make a run-length companion vector
Given a vector x, return a vector r that indicates the run length of any value in x. Each element in r shows how many times the ...

대략 9년 전

질문


Tight Boundary around a Set of Points
I want to draw a tight boundary around a set of points. The code is used below to draw the black boundary around the blue points...

9년 초과 전 | 답변 수: 3 | 0

3

답변

질문


Multidimensional array indexing question
I have a matrix |x| that is of size [61 2 45]. linearIndex = find(x(:,1,:) < x(:,2,:)); xAverage = (x(:,1,:) + x(:,2,:))...

9년 초과 전 | 답변 수: 2 | 0

2

답변

문제를 풀었습니다


Coordinate geometry
Assign pointsDistance with the distance between point (x1, y1) and point (x2, y2). The distance is calculated by: Distance =...

거의 10년 전

문제를 풀었습니다


Double colon operator: Counting up
* Construct a row array countValues from 1 to endValue, using the double colon operator. Ex: If endValue is 5, countValues s...

거의 10년 전

문제를 풀었습니다


Indexing an array element
* Assign currentStudent with the second element of array testScores. _Reminder: Array indexing starts with 1._

거의 10년 전

문제를 풀었습니다


Character variable: Compass direction
* Assign compassDirection with sensorReading's value. Both are character variables.

거의 10년 전

문제를 풀었습니다


Comments
* Fix the syntax errors.

거의 10년 전

문제를 풀었습니다


Population growth
Assign finalPopulation with the population size given an initial population, population growth rate, and number of years. The fi...

거의 10년 전

문제를 풀었습니다


Declaring a string
* Assign streetAddress with the string 1313 Mockingbird Lane.

거의 10년 전

문제를 풀었습니다


Indexing the last element: Print queue
* Delete the last element of row array printQueue.

거의 10년 전

문제를 풀었습니다


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

거의 10년 전

문제를 풀었습니다


Declaring a character
* Assign middleInitial with the character T.

거의 10년 전

문제를 풀었습니다


Construct an array
* Construct an row array named observedValues with elements sensorReading1, sensorReading2, and sensorReading3.

거의 10년 전

문제를 풀었습니다


Function definition: Double down.
* Complete the DoubleDown function to return twice the initialValue.

거의 10년 전

문제를 풀었습니다


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

거의 10년 전

문제를 풀었습니다


Logic variables
* Assign isAvailable with true.

거의 10년 전

문제를 풀었습니다


Simple equation: Annual salary
Given an hourly wage, compute an annual salary by multiplying the hourly wage times 40 and times 50, because annualSalary = hour...

거의 10년 전

문제를 풀었습니다


Integer indexing array: Weekend box office
The row array movieBoxOffice stores the amount of money a movie makes (in millions of $) for the 7 days of a week, starting with...

거의 10년 전

문제를 풀었습니다


Compute total cost
A soda costs 2 dollars. A taco costs 3 dollars. Write a statement that assigns totalCost with the total meal cost given the numb...

거의 10년 전

문제를 풀었습니다


Fahrenheit to Celsius using multiple statements
°C = (°F - 32) x 5/9 * Write a statement that assigns fractionalMultiplier with 5/9. * Write a second statement that assign...

거의 10년 전

문제를 풀었습니다


Scoring for oriented dominoes
Given a list of ordered pairs, and the order they should be placed in a line, find the sum of the absolute values of the differe...

거의 10년 전

문제를 풀었습니다


Write an expression
Assigns finalResult with firstSample plus secondSample, squared, then divided by 3. Ex: If firstSample is 18 and secondSample is...

거의 10년 전

문제를 풀었습니다


Plus x: A first program
_Solve this problem in Mathwork's online Cody system._ Write a statement that assigns y with 5 plus x. Ex: If input x = 2,...

거의 10년 전

문제를 풀었습니다


Circle area using pi
Write a statement that assigns circleArea with the circle's area given circleRadius. Use the built-in mathematical constant pi. ...

거의 10년 전

문제를 풀었습니다


Assigning a sum
* Write a statement that assigns numCoins with numNickels + numDimes.

거의 10년 전

문제를 풀었습니다


Compute the step response of a DC motor
Compute the step response of a DC motor shown below <<http://blogs.mathworks.com/images/seth/cody/dc-motor.png>> The param...

거의 10년 전

문제를 풀었습니다


Model a simple pendulum
Model a simple pendulum of length 200cm with bob of mass 100g and plot the position in degrees. The pendulum starts at 30 degree...

거의 10년 전

더 보기