Uploaded by Muhammad Awais

assignmnt

advertisement
Teacher
Zahid Sarfraz
Student Muhammad Awais
Assignment 1
Sin(x)graph
%question1
clc
clear all
close all
x=0:.1:10;
y=sin(x);
figure(1)
plot(x,y)
xlabel('current')
ylabel('voltage')
title('current-voltage graph')
colorbar
legend('graph')
grid on
grid minor
Cos(x)graph
%question2
clc
clear all
close all
x=0:.1:10;
y=cos(x);
figure(1)
plot(x,y)
xlabel('current')
ylabel('voltage')
title('current-voltage graph')
colorbar
legend('graph')
grid on
grid minor
Tan(x)graph
%question3
clc
clear all
close all
x=0:.1:10;
y=tan(x);
figure(1)
plot(x,y)
xlabel('current')
ylabel('voltage')
title('current-voltage graph')
colorbar
legend('graph')
grid on
grid minor
Sec(x)graph
%question4
clc
clear all
close all
x=0:.1:10;
y=sec(x);
figure(1)
plot(x,y)
xlabel('current')
ylabel('voltage')
title('current-voltage graph')
colorbar
legend('graph')
grid on
grid minor
Csc(x)graph
%question5
clc
clear all
close all
x=0:.1:10;
y=csc(x);
figure(1)
plot(x,y)
xlabel('current')
ylabel('voltage')
title('current-voltage graph')
colorbar
legend('graph')
grid on
grid minor
Cot(x)graph
%question6
clc
clear all
close all
x=0:.1:10;
y=cot(x);
figure(1)
plot(x,y)
xlabel('current')
ylabel('voltage')
title('current-voltage graph')
colorbar
legend('graph')
grid on
grid minor
Download