문제를 풀었습니다


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년 전

문제를 풀었습니다


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년 전

문제를 풀었습니다


Rotate a Matrix
Input a Matrix x, Output y is the matrix rotating x 90 degrees clockwise

거의 10년 전

문제를 풀었습니다


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

거의 10년 전

문제를 풀었습니다


Make one big string out of two smaller strings
If you have two small strings, like 'a' and 'b', return them put together like 'ab'. 'a' and 'b' => 'ab' For extra ...

거의 10년 전

문제를 풀었습니다


Find the area of a rectangle if length of the diagonal is given.
if length of a diagnonal in rectangle is 5. Its area is 12.

거의 10년 전

문제를 풀었습니다


find the relation...
if given input is 1, output is 4. if input is 55, output is 3136.

거의 10년 전

문제를 풀었습니다


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

거의 10년 전

문제를 풀었습니다


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

거의 10년 전

문제를 풀었습니다


Area of a triangle
A triangle is given with base *'b'* ,vertical hight *'h'* . then find it's area.

거의 10년 전

문제를 풀었습니다


CONVERT TAN TO SIN
In a right angle triangle ABC given the tan(A) then find sin(A) For example tan(A)=3/4 then sin(A)=3/5

거의 10년 전

문제를 풀었습니다


Determine the square root
Determine the square root of the value the user has entered, n.

거의 10년 전

문제를 풀었습니다


Evaluating a polynomial
Given the following polynomial and the value for x, determine y. y = 3x^5 – x^3 + 8x – 3 Example x = 1 y = 3 - 1 +...

거의 10년 전

문제를 풀었습니다


07 - Common functions and indexing 6
Create a variable _m_ as a magic square with the size 6 x 6 Magic squares are defined as square matrices, where the sum of a...

거의 10년 전

문제를 풀었습니다


Find the hypotenuse
Given a and b (the two sides of a right-triangle), find c, the hypotenuse.

거의 10년 전

문제를 풀었습니다


Remainder
Make 'y' equal to the remainder of 27 divided by 5. When x=27 and t=5

거의 10년 전

문제를 풀었습니다


Sum of the Matrix Elements
Add up all the elements in a NxM matrix where N signifies the number of the rows and M signifies the number of the columns. E...

거의 10년 전

문제를 풀었습니다


Matlab Basics - Absolute Value
Write a script that returns the absolute value of the elements in x e.g. x = [-1 -2 -3 -4] --> y = [1 2 3 4]

거의 10년 전

문제를 풀었습니다


Matlab Basics - Rounding I
Write a script to round x DOWN to the next lowest integer: e.g. x = 2.3 --> x = 2 also: x = 2.7 --> x = 2

거의 10년 전

문제를 풀었습니다


Matlab Basics - Sum a vector
Write a script to add up all the elements in a vector e.g. x = [1 2 3 4] --> output = 10

거의 10년 전

문제를 풀었습니다


Matlab Basics - y as a function of x
write a script to calculate y as a function of x, such that y = 6x^2 + 5x - 2

거의 10년 전

문제를 풀었습니다


Counting down
Create a vector that counts from 450 to 200 in increments of 10.

거의 10년 전

문제를 풀었습니다


peta to nano (x-ray)
for certain x-ray radiation, given frequency in petahertz, give wavelength in nanometer, must be accurate +/- 25%

거의 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년 전

문제를 풀었습니다


Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
The given function returns the index of the maximum value in a given matrix. such as X=[4,3,4,5,9,12,0,5] Ans= 6 if maxim...

거의 10년 전

문제를 풀었습니다


07 - Common functions and indexing 2
Define _eMat_: <<http://samle.dk/STTBDP/Assignment1_3e.png>> Calculate eMean as the mean across the rows of _eMat_. The an...

거의 10년 전

문제를 풀었습니다


Temperature conversion
Convert temperature in degrees Celsius (C) to temperature in degrees Kelvin (K). Assume your answer is rounded to the nearest Ke...

거의 10년 전

문제를 풀었습니다


What percentage?
Calculate the output c as the percentage of a on b for given a and b.

거의 10년 전

문제를 풀었습니다


find the maximum element of the matrix
for e.g x = [1 2; 3 4] y = 4

거의 10년 전

더 보기