subject
Engineering, 03.12.2019 18:31 trintrin227

Write a user-defined matlab function that determines the unit vector in the direction of the line that connects two points (a and b) in space. for the function name and arguments, use n=unitvec(a, b). the input to the function are two vectors a and b, each with cartesian coordinates of the corresponding point. the output is a vector with components of the unit vector in the direction from a to b. if points a and b have two coordinates each, then n is a two-element vector. if points a and b have three coordinates each, then n is a three-element vector. use the function to determine the following unit vectors: a. in the direction from point (1.2, 3.5) to point (12,15) b. in the direction from point (-10, -4, 2.5) to point (-13, 6, -5)

ansver
Answers: 1

Another question on Engineering

question
Engineering, 04.07.2019 03:10
What precautions should you take to prevent injuries when dealing with heavy loads?
Answers: 1
question
Engineering, 04.07.2019 12:10
On a average work day more than work place firs are reorted
Answers: 1
question
Engineering, 04.07.2019 18:10
Asingle-geared blanking press has a stroke of 200 mm and a rated capacity of 320 kn. a cam driven ram is assumed to be capable of delivering the full press load at constant force during the last 15 percent of a constant-velocity stroke. the camshaft has an average speed of 90 rev/min and is geared to the flywheel shaft at a 6: 1 ratio. the total work done is to include an allowance of 16 percent for friction a) estimate the maximum energy fluctuation b) find the rim weight for an effective diameter of 1.2 m and a coefficient of speed fluctuation of 0.10
Answers: 1
question
Engineering, 04.07.2019 18:10
Which of the following components of a pid controlled accumulates the error over time and responds to system error after the error has been accumulated? a)- proportional b)- derivative c)- integral d)- on/off.
Answers: 2
You know the right answer?
Write a user-defined matlab function that determines the unit vector in the direction of the line th...
Questions
question
Mathematics, 07.02.2021 02:00
question
Biology, 07.02.2021 02:00
question
Mathematics, 07.02.2021 02:00