Question: Matlab Use MATLAB to determine how many elements are in the array cos(0):0.04:log10(200). Determine the 30^th element. ans = 33 ans = 2.1600 Sometimes it
Use MATLAB to determine how many elements are in the array cos(0):0.04:log10(200). Determine the 30^th element. ans = 33 ans = 2.1600 Sometimes it is convenient to have a table of sine, cosine, and tangent values instead of using a calculator. Create a table of all three of these trigonometric functions for angles from 0 to 2 pi, with a spacing of pi/6 radian. Your table should contain a column for the angle and then for the sine, cosine, and tangent. Use 'disp' command. Define the following two arrays A=[10 2 3 40] B=[15 6 27 8] Find array P by stacking arrays A and B horizontally Find array Q by stacking arrays A and B vertically Find element by element array multiplication of A and B, call the resulting vector as R Sort array A in 'descending' order, call the resulting vector as S
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
