Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using Matlab, please help me doing these questions (1) Turn the diary on (with a filename of your choosing) and begin your file with a
Using Matlab, please help me doing these questions
(1) Turn the diary on (with a filename of your choosing) and begin your file with a comment line including both your name and "Lab 1". (i.e. On the first line, type "\% your name Lab 1"). (2) Calculate the following expressions in MATLAB (a) 4925+32 (b) 6253/4 (c) sin(4) (d) log(e) (3) Consider a triangle with sides a,b, and c and corresponding angles ab,ac,bc (a) Use the law of cosines, i.e., c2=a2+b22abcosab to calculate c if a=3.7,b=5.7,ab=79. (b) Show c to its full accuracy. (c) Use the law of sines, i.e, csinab=bsinac to calculate ac in degrees. (4) Analytically, cos2=2cos21. Check whether this is also true numerically when using MATLAB by using a number of different values of . Please only turn in the pertinent parts of the diary. I don't need to see all your istakes. You can edit the diary after you double click on itStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started