subject
Engineering, 25.02.2020 16:43 someone2301

Write a user-defined MATLAB function that determines the unitvector in the direction of the line that connects two points (A andB) in space. For the function name and arguments use "n =unitvec(A, B). The input to the function are two vectors A andB, each of which has three elements which are the Cartesiancoordinates of the corresponding point. The ouput is a vectorwith the three components of the unit vector in the direction fromA to B. Use the function to determine the following unitvectors:
(a) In the direction from point (1.5,2.1,4) to point(11,15,9).
(b) In the direction from point (-11,3,-2) to point(-13,-4,-5).
(c) In the direction from point (1,0,1) to point (0,1,1).

ansver
Answers: 2

Another question on Engineering

question
Engineering, 04.07.2019 18:20
Find the minimum film thickness for a journal bearing with the data below. shaft diameter, d-50 mm, clearance ratio, cdratio? 0.001, shaft speed, n 2000 rpm; bearing length. i 200 mm; eccentricity ration, ? -0.55. ( note, cdratio-ca/d) the minimum film thickness is um
Answers: 2
question
Engineering, 04.07.2019 19:10
10 kg of co2 is initially contained at 400 kpa and 300 k. the gas constant for carbon dioxide is 189 j/lkg k) and has a specific heat ratio, k, of 1.289. isentropic expansion then occurs until the pressure is 200 kpa. a) determine the initial volume of co2 in m. b) determine the final temperature in k. c) determine the work done by the system during the expansion kl.
Answers: 2
question
Engineering, 04.07.2019 19:20
Apreheater involves the use of condensing steam at 100°c on the inside of a bank of tubes to heat air that enters at 1 atm and 25°c. the air moves at 5 m/s in cross flow over the tubes. each tube is 1 m long and has an outside diameter of 10 mm. what is the minimum value of nl needed to achieve an outlet temperature of t 75 c? what is the corresponding pressure drop across the tube bank?
Answers: 3
question
Engineering, 06.07.2019 03:30
The load on a bolt consists of an axial pull of 10 kn together with a transverse shear force of 5 kn. the bolt material has a yield strength of syt syc 100 mpa. find the diameter of the bolt at factor of safety n-0.5, n 1 and n-2 using maximum shear stress theory
Answers: 3
You know the right answer?
Write a user-defined MATLAB function that determines the unitvector in the direction of the line tha...
Questions
question
Mathematics, 12.03.2020 05:10
question
Mathematics, 12.03.2020 05:10
question
Mathematics, 12.03.2020 05:10
Questions on the website: 13722362