Question: Exercise # 2 . MatLab M - File Function Consider the following equation ( ) = 0 1 - - ( ) ( 1 -

Exercise #
2
.
MatLab M
-
File Function Consider the following equation
(
)
=
0
1
-
-
(
)
(
1
-
2
*
*
+
)
a
)
Write a MATLAB M
-
file function to obtain numerical values of
(
)
.
Your function must take
(
0
)
,
,
,
and
as function inputs and
(
)
as output argument.b
)
Write a second script
-
file to obtain the plot for
(
)
for
0
=
0
.
1
5
,
=
?
,
=
1
2
?
=
0
0
with
increment
0
.
1
,
considering the following two cases Case
2
:
0
=
0
.
1
5
,
=
?
,
=
1
2
?
and
=
0
;Exercise #2. MatLab M-File Function
Consider the following equation
y(t)=y01-2e-(n)tsin(n1-22**t+)
a) Write a MATLAB M-file function to obtain numerical values of y(t). Your function must take y(0),,n,t and as function inputs and y(t) as output argument.
b) Write a second script m-file to obtain the plot for y(t) for y0=0.15m,n=?2radsec,=12?2=00 with an increment of0.1,by considering the following two cases
Case 2: y0=0.15m,n=?2radsec,=12?2 and =0;
 Exercise # 2 . MatLab M - File Function Consider the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!