Answered step by step
Verified Expert Solution
Question
1 Approved Answer
x 2. (30 points ) Create the table for cosine function using the following steps: A Table of angles and corresonding cosine values theta cos(theta)
x 2. (30 points ) Create the table for cosine function using the following steps: A Table of angles and corresonding cosine values theta cos(theta) 0.000 1.000 45.000 0.707 90.000 0.000 -0.707 (1) Create an array table with two columns. The first column is a vector theta for angles from 0 to 360 in increment of 45 degrees, and the second column is cosine of theta. (2) Use disp to create a title for the table and headings for each column as shown above. (3) Use the fprintf function to display the numbers with three precision digits past a decimal point with a field length of 7, i.e. 87.3f
Step 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