1. Create a vector called alpha which is 10 to 170 with 5 degree increments. The law of cosines relates C the length of the side of a triangle opposite, angle to the other two sides of lengths A and B by the formula AD B C² = A²+ B² - 2AB cos(a) Write a series of (correct) Matlab commands that will output the length of the third side C when A = 4, B = 5, and for values of from 10 to 170 degrees in 5 degree increments. Remember the cos() function in Matlab uses radians, so use cosd. (Do not use loops.) Visualize this by plotting a versus C, using blue stars. A A B

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter7: Arrays
Section: Chapter Questions
Problem 7PP: (Numerical) Using the srand() and rand() C++ library functions, fill an array of 1000 floating-point...
icon
Related questions
Question
1. Create a vector called alpha which is 10 to 170 with 5 degree increments. The law of cosines relates C the length of the side of a triangle opposite, angle to the other two sides of lengths A and B by the formula AD B C² = A²+ B² - 2AB cos(a) Write a series of (correct) Matlab commands that will output the length of the third side C when A = 4, B = 5, and for values of from 10 to 170 degrees in 5 degree increments. Remember the cos() function in Matlab uses radians, so use cosd. (Do not use loops.) Visualize this by plotting a versus C, using blue stars. A A B
Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L