문제를 풀었습니다


Chess probability
The difference in the ratings between two players serves as a predictor of the outcome of a match (the <http://en.wikipedia.org/...

대략 2개월 전

문제를 풀었습니다


Total energy

대략 2개월 전

문제를 풀었습니다


Potential energy calculation

대략 2개월 전

문제를 풀었습니다


Kinetic energy calculation

대략 2개월 전

문제를 풀었습니다


Laws of motion 1

대략 2개월 전

문제를 풀었습니다


Laws of motion 2

대략 2개월 전

문제를 풀었습니다


Laws of motion 4
Given the initial velocity 'u', final velocity 'v' and acceleration 'a', find the distance travelled.

대략 2개월 전

문제를 풀었습니다


Laws of motion 5
Calculate the force is u are given mass and acceleration.

대략 2개월 전

문제를 풀었습니다


Laws of motion 6

대략 2개월 전

문제를 풀었습니다


Roll the Dice!
Description Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. Example [x1,x2] = rollDice(...

대략 2개월 전

문제를 풀었습니다


Magic is simple (for beginners)
Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.

대략 2개월 전

문제를 풀었습니다


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]

대략 2개월 전

문제를 풀었습니다


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

대략 2개월 전

문제를 풀었습니다


Return area of square
Side of square=input=a Area=output=b

대략 2개월 전

문제를 풀었습니다


Power Outages Histogram
Create a function that takes power outage data as an input and creates a histogram of the number of outages as a function of Reg...

대략 2개월 전

문제를 풀었습니다


Make a Plot with Functions
Make a plot and test

대략 2개월 전

문제를 풀었습니다


Plotting Practice
Plot cos(x) vs x as shown in the figure below. Include the appropriate title, x-label, and y-label. Note, it is case sensitive. ...

대략 2개월 전

문제를 풀었습니다


Laws of motion 3

대략 2개월 전

문제를 풀었습니다


Add two numbers
Given a and b, return the sum a+b in c.

대략 2개월 전

문제를 풀었습니다


Longest run of consecutive numbers
Given a vector a, find the number(s) that is/are repeated consecutively most often. For example, if you have a = [1 2 2 2 1 ...

대략 2개월 전

문제를 풀었습니다


Rescale Scores
Each column (except last) of matrix X contains students' scores in a course assignment or a test. The last column has a weighted...

대략 2개월 전

문제를 풀었습니다


Calculate Inner Product
Given two input matrices, x and y, check if their inner dimensions match. If they match, create an output variable z which cont...

대략 2개월 전

문제를 풀었습니다


Find MPG of Lightest Cars
The file cars.mat contains a table named cars with variables Model, MPG, Horsepower, Weight, and Acceleration for several classi...

대략 2개월 전

문제를 풀었습니다


Find the Best Hotels
Given three input variables: hotels - a list of hotel names ratings - their ratings in a city cutoff - the rating at which yo...

대략 2개월 전

문제를 풀었습니다


Crop an Image
A grayscale image is represented as a matrix in MATLAB. Each matrix element represents a pixel in the image. An element value re...

대략 2개월 전

문제를 풀었습니다


Calculate BMI
Given a matrix hw (height and weight) with two columns, calculate BMI using these formulas: 1 kilogram = 2.2 pounds 1 inch = 2...

대략 2개월 전

문제를 풀었습니다


Plot Damped Sinusoid
Given two vectors |t| and |y|, make a plot containing a blue ( |b| ) dashed ( |--| ) line of |y| versus |t|. Mark the minimum...

대략 2개월 전

문제를 풀었습니다


Minkowski distance

대략 2개월 전

문제를 풀었습니다


The Five Infection (Boss Level)
Given a 3x3 matrix A, replace: every value that is equal to five every value that is directly adjacent to a five with zero in...

대략 2개월 전

문제를 풀었습니다


Fives Begone
Given any sentence as an input value 'sentence', turn all fives into the letter X and return the improved sentence. Also, turn a...

대략 2개월 전

더 보기