Question
solve all questions simply by using matlab.
write all step here please

1Normal 1 No Spac Heading1 Heading 2 DISCUSSION Solve all tasks given below: 1. Consider function f(x) 3.5-0.5x cos(6x) for t
0 0
Add a comment Improve this question Transcribed image text
Answer #1

1.The matlab command is given below

x=[-2:0.1:4];
y=(3.5).^(-0.5.*x).*cos(6.*x);
plot(x,y,'-r')
grid on
xlabel('X axiss')
ylabel('Y axiss')
title('ploting of polynomial graph')


2(a).Both graph on the same plot

t=[0:0.1:pi];
x=10.*exp(-0.5.*t).*sin(3.*t+2);
y=7.*exp(-0.4.*t).*cos(5.*t-3);
plot(t,x,'-r',t,y,':g') % - is used for solid line and : is used for dotted line r for red colour and g for green
grid on
xlabel('x-axiss')
ylabel('y-axiss')
title('plottig of graphs')
legend('y','z')

2(b). using sub plot comand

subplot(2,1,1)
t=[0:0.1:pi];
x=10.*exp(-0.5.*t).*sin(3.*t+2);
plot(t,x,'-r')
title('subplot 1: x(t)')
subplot(2,1,2)
t=[0:0.1:pi];
y=7.*exp(-0.4.*t).*cos(5.*t-3);
plot(t,y,':g')
title('subplot 2: y(t)')

Add a comment
Know the answer?
Add Answer to:
solve all questions simply by using matlab. write all step here please 1Normal 1 No Spac Heading1 Heading 2 DISCUSSION Solve all tasks given below: 1. Consider function f(x) 3.5-0.5x cos(6x) for...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT