Home / Expert Answers / Computer Science / l-need-to-do-code-for-matlab-like-this-nbsp-up-to-date-with-security-updates-fixes-and-improvemen-pa549

(Solved): l need to do code for matlab like this  up-to-date with security updates, fixes, and Improvemen ...



l need to do code for matlab like this 


up-to-date with security updates, fixes, and Improvements, choose Check for Updates.
I
2. The function sin x can be written a
2. >>Tsin(150,3)
1
ans
0.6523
>>Tsin(150,7)
ans
wwww
0.5000
Curr...
300000
VO
DODE
Det....
4
adu
N m st
FILE
18
3
NAVIGATE
CODE
C: Users pc Desktop MATLAB LABS lab4
Editor - C:\Users\pc
up-to-date with security updates, fixes, and Improvements, choose Check for Updates. I 2. The function sin x can be written as Taylor's series by: sin x = n k=0 (-1)*x²k+1 (2k + 1)! Pane Write a user defined function that calculates sin(x) by using the Taylor's series. For the function name and arguments use y-Tsin(x,n).The input arguments are the angle x in degrees, and n the number of terms in the series. Use the function to calculate sin(150) using 3 and 7 terms. Nested For loops: 1. Write a program in a script file that creates nxm matrix with elements have the following values. The value of the elements in the first row is the number of the column. The value of element in the first column is the number of row. The rest of the elements are equal to the sum of the element above them and the element to the left. When executed the program asks the user to enter the values of m and 11. 20 Ch 2. >>Tsin(150,3) 1 ans 0.6523 >>Tsin(150,7) ans wwww 0.5000 Curr... 300000 VO DODE Det.... 4 adu N m st FILE 18 3 NAVIGATE CODE C: Users pc Desktop MATLAB LABS lab4 Editor - C:\Users\pc\Desktop\MATLAB LABS\lab4\Q2_LAB4.m Nested Loop.m 138 practice.m Q2_LAB4.mx + function y = Tsin(x,n) x=deg2rad (x);%function in MATLAB to convert degree to radian. y=0; 4 50 6 7 8 9 10 for k=0:n Command Window division FirstPart/SecondPart; Ein >> Tsin (150,7) FirstPart=((-1)^k)*(x^(2*k+1)); SecondPart=factorial((2 k)+1); % using factorial in MATLAB which four ans = fx >> 0.5000 >> Tsin (150,3) Bookmark ans = 0.4850 ANALYZE Section


We have an Answer from Expert

View Expert Answer

Expert Answer


At the beginning of your function, ad
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe