The following equation is supposed to be calculated via MATL
The following equation is supposed to be calculated via MATLAB. A = 2/3 * (5 * tangent (3pi/2) - sine (2pi/3) + log 49 Type in the following MATLAB command. Where is the error? Type in what the correct command should be along with the corresponding answer. >> a=(2/3) * (5*tan(3*pi/2)-sin(2*pi/3)+log10(49) The following two MATLAB command lines yield two different answers. What are they and explain why they are different. >> (1/3) * (acosd(1/2)/(3-sin(2*pi/3))) >> (1/3 * (acosd(1/2/(3-sin(2*pi/3)))) Generate the following matrix without typing in each individual element. Utilize the colon operator, linspace and other built-in MATLAB functions. 1 14 7 15 3 28 7 26 5 42 7 37 7 56 7 48 From the above matrix, use MATLAB commands to find the elements (or series of elements) listed below: 2 nd row, 3rd column 1st row, 4th column All rows in 2nd column All columns in 3rd row All columns in 2nd and 4th row All rows in 1st and 4th columns The 2nd through 4th rows in the 1st through 3rd columns The 2nd through 3rd rows in the 2nd through 3rd columns The 1st and 4th rows in the 2nd and 4th columns
Solution
This question consist of more than 1 question, As per chegg guidelines I will attempt first question (Q.6) Completely
6. program is
a= (2/3)*(5*tan(3*pi/2) - Sin(2*pi/3) + log(49)
the correct form is
(2/3)*(5*tan(3*pi/2) - Sin(2*pi/3)) + log(49)
bracket missing
