subject

Write a user dened matlab function that determines the unit vector and the direction for the line that connects two point (a and b) in space. for the function name and arguments, use n = unitvect(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 the components of the vector in the direction from a to b. if points a and b have 2 coordinate each (they are in the x-y plane), then n is a two element vector. if points a and b have three coordinates each (general points in space), then n is a three-dimensional 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: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 19:00, amayax77
Write a program that displays the following menu: geometry calculator 1. calculate the area of a circle 2. calculate the area of a rectangle 3. calculate the area of a triangle 4. quit enter your choice (1-4): if the user enters 1, the program should ask for the radius of the circle and then display its area. use the following formula: area = ď€(the square of r) use 3.14159 for ď€ and the radius of the circle for r. if the user enters 2, the program should ask for the length and width of the rectangle and then display the rectangle’s area. use the following formula: area = length * width if the user enters 3, the program should ask for the length of the triangle’s base and its height, and then display its area. use the following formula: area = base * height * .5 if the user enters 4, the program should end. input validation: display an error message if the user enters a number outside the range of 1 through 4 when selecting an item from the menu. do not accept negative values for the circle’s radius, the rectangle’s length or width, or the triangle’s base or height. note: if the user enters an improper menu choice (1-4), the program prints "the valid choices are 1 through 4. run the program again and select one of those." if the user enters a negative radius, the program prints "the radius can not be less than zero." if the user enters a negative value for height or base, the program prints "only enter positive values for base and height."
Answers: 1
image
Computers and Technology, 25.06.2019 08:10, yangyang718
Rom also called main memory or system memoryis used to stor the essential parts of the operating while the computer is running / true or false
Answers: 2
image
Computers and Technology, 25.06.2019 08:30, FombafTejanjr7503
Which of these devices is usually the default for most home network?
Answers: 1
image
Computers and Technology, 25.06.2019 08:30, aj12381
Which of the following terms is described as “the art and design of using text”? a. typography b. elements of design c. typos d. graphic design
Answers: 1
You know the right answer?
Write a user dened matlab function that determines the unit vector and the direction for the line th...

Questions in other subjects:

Konu
Mathematics, 11.03.2021 23:30