Cory Johnson
NCSU CSC
Followers: 0 Following: 0
Mechanical Engineering Student at NC State.
Estadísticas
CLASIFICACIÓN
5.501
of 290.063
REPUTACIÓN
8
CONTRIBUCIONES
1 Pregunta
4 Respuestas
ACEPTACIÓN DE RESPUESTAS
100.0%
VOTOS RECIBIDOS
2
CLASIFICACIÓN
17.249 of 19.634
REPUTACIÓN
2
EVALUACIÓN MEDIA
0.00
CONTRIBUCIONES
1 Archivo
DESCARGAS
1
ALL TIME DESCARGAS
28
CLASIFICACIÓN
7.993
of 144.459
CONTRIBUCIONES
0 Problemas
74 Soluciones
PUNTUACIÓN
640
NÚMERO DE INSIGNIAS
4
CONTRIBUCIONES
0 Publicaciones
CONTRIBUCIONES
0 Público Canales
EVALUACIÓN MEDIA
CONTRIBUCIONES
0 Temas destacados
MEDIA DE ME GUSTA
Feeds
Resuelto
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...
más de 7 años hace
Resuelto
Distance walked 1D
Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...
más de 7 años hace
Resuelto
Create a row array using double colon operator
Create a row array from 9 to 1, using the double colon operator.
más de 7 años hace
Resuelto
Bullseye Matrix
Given n (always odd), return output a that has concentric rings of the numbers 1 through (n+1)/2 around the center point. Exampl...
más de 7 años hace
Resuelto
Fahrenheit to Celsius using multiple statements
Given a Fahrenheit value F, convert to a Celsius value C. While the equation is C = 5/9 * (F - 32), as an exercise use two state...
más de 7 años hace
Resuelto
Target sorting
Sort the given list of numbers |a| according to how far away each element is from the target value |t|. The result should return...
más de 8 años hace
Resuelto
Which values occur exactly three times?
Return a list of all values (sorted smallest to largest) that appear exactly three times in the input vector x. So if x = [1 2...
más de 8 años hace
Resuelto
How to find the position of an element in a vector without using the find function
Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for. Examples: fin...
más de 8 años hace
Resuelto
Circle area using pi
Given a circle's radius, compute the circle's area. Use the built-in mathematical constant pi.
más de 8 años hace
Resuelto
Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]
más de 8 años hace
Resuelto
Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...
más de 8 años hace
Resuelto
Function call in expression: Reduced pricing.
Write a single statement that assigns cartTotal with the discounted cost of items 1 and 2. Function DiscountedPrice will return ...
más de 8 años hace
Resuelto
Function definition: Double down.
* Complete the DoubleDown function to return twice the initialValue.
más de 8 años hace
Resuelto
Bottles of beer
Given an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and ...
más de 8 años hace
Resuelto
Create a Standard Size Vector
Given an input x, create a row vector y from 1 to x with 5 elements.
más de 8 años hace
Resuelto
Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...
más de 8 años hace
Resuelto
Simple equation: Annual salary
Given an hourly wage, compute an annual salary by multiplying the wage times 40 and times 50, because salary = wage x 40 hours/w...
más de 8 años hace
Resuelto
Declaring a string
* Assign streetAddress with the string 1313 Mockingbird Lane.
más de 8 años hace
Resuelto
Character variable: Compass direction
* Assign compassDirection with sensorReading's value. Both are character variables.
casi 9 años hace
Resuelto
Write an expression
Assigns finalResult with firstSample plus secondSample, squared, then divided by 3. Ex: If firstSample is 18 and secondSample is...
casi 9 años hace
Resuelto
Pizza value using expression with parentheses
Pizza prices are typically listed by diameter, rather than the more relevant feature of area. Compute a pizza's value (cost per ...
casi 9 años hace
Resuelto
Circle area using pi
Write a statement that assigns circleArea with the circle's area given circleRadius. Use the built-in mathematical constant pi. ...
casi 9 años hace
Resuelto
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...
casi 9 años hace
Resuelto
Assigning a sum
* Write a statement that assigns numCoins with numNickels + numDimes.
casi 9 años hace
Resuelto
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...
casi 9 años hace
Resuelto
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,...
casi 9 años hace