解決済み


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

10年以上 前

解決済み


Logical indexing: Player scores
Player 1 and player 2 take turns playing a game. Row array gameScores contains the scores of player 1, then player 2, then playe...

10年以上 前

解決済み


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

10年以上 前

解決済み


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

10年以上 前

解決済み


Integer indexing array: Shift left
Write a *single* statement that shifts row array attendanceValues one position to the left. The rightmost element in attendanceV...

10年以上 前

解決済み


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

10年以上 前

解決済み


Comments
* Fix the syntax errors.

10年以上 前

解決済み


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

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年以上 前

解決済み


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

10年以上 前

解決済み


Multi-line comments
* Fix the syntax errors.

10年以上 前

解決済み


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

10年以上 前

解決済み


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

10年以上 前

解決済み


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

10年以上 前

解決済み


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

10年以上 前

解決済み


Declaring a character
* Assign middleInitial with the character T.

10年以上 前

解決済み


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

10年以上 前

解決済み


Logic variables
* Assign isAvailable with true.

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年以上 前

解決済み


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年以上 前

解決済み


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年以上 前

解決済み


Divisible by 2
This is the first problem in a set of "divisible by x" problems. You will be provided a number as a string and the function you ...

10年以上 前

解決済み


Given an input string, generate a variable name out of it
Given an input string, generate a variable name out of it in easy to read format by a programmer. If the input string contai...

10年以上 前

解決済み


Prime Letters = Removing
Given a string, remove all the letters which in ASCII Code are prime numbers. For Example: s1 = 'Determine which array e...

10年以上 前

解決済み


ascii value
let input='a' output=97

10年以上 前

解決済み


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

10年以上 前

解決済み


ASCii Code
Using matlab, give the symbol that is associated with ASCii code 122

10年以上 前

解決済み


ASCii Code
Using Matlab get the ASCii for '?'

10年以上 前

解決済み


Squaring Matrix
Square the following matrix using matlab % A = 1 2 3 4 5 6 7 8 So new matrix should display...

10年以上 前

解決済み


Deleting an element in a matrix
For vector Grades=[98 56 78 34 100 88 87], delete the number 78 to get the following matrix Grades=[98 56 34 100 88 87] **re...

10年以上 前

さらに読み込む