Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Matlab by Damien ( 14 years ago )
% PreLabs 31
clear, clc
�fine variables
z_1 = 10*exp(-j*(2*pi)/3);
z_2 = -5+j*5;
%Plotting with zvect()
%zvect([z_1,z_2])
%hold on, zcoords, ucplot,
�ding z_1 to z_2
z_t = z_1 + z_2;
%plotting again with zvect()
%zvect(0,z_t,2)
fprintf('z_1 + z_2:n')
zprint(z_t)
fprintf('nn')
%hold off
%z1*z2
fprintf('z_1 * z_2:n')
zprint(z_1*z_2)
fprintf('nn')
%z1/z2
fprintf('z_1 / z_2:n')
zprint(z_1/z_2)
fprintf('nn')
%z1*z2*
fprintf('z_1 conj & z_2 conj:n')
zprint(conj(z_1))
zprint(conj(z_2))
fprintf('nn')
%1/z1&1/z2
fprintf('1/z_1 & 1/z_2:n')
zprint(1/(z_1))
zprint(1/(z_2))
fprintf('nn')
%preparing subplot
%z1 and z2
subplot(2,2,1);
hold on, zcoords, ucplot
zvect([z_1,z_2]);
hold off
%z1 and z2 conjs
subplot(2,2,2);
hold on, zcoords, ucplot
zvect([conj(z_1),conj(z_2)]);
hold off
%1/z1 and 1/z2 conjs
subplot(2,2,3);
hold on, zcoords, ucplot
zvect([1/(z_1),1/(z_2)]);
hold off
%1/z1 and 1/z2 conjs
subplot(2,2,4);
hold on, zcoords, ucplot
zvect([(z_1)*(z_2)]);
hold off
Revise this Paste
Parent: 46492