Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
clear; clc; close all;
A = [0.8660 - 0.5000*i; -0.8660 - 0.5000*i; 0.0000 + 1.0000*i];
B = [ 1, 1, 1];
C = [-30, -150, 90];
h = figure(1);
subplot(2,2,1);
compass(A);
title('Compass Function Plotting Rectangular Representation');
subplot(2,2,2);
Phasor(A);
title('Phasor Function Plotting Rectangular Representation');
subplot(2,2,3);
U = B.*cos(C.*pi/180);
V = B.*sin(C.*pi/180);
compass(U,V);
title('Compass Function Plotting Polar Representation');
subplot(2,2,4);
Phasor([B;C]');
title('Phasor Function Plotting Polar Representation');
W = 5; H = 4;
set(h,'PaperUnits','inches')
set(h,'PaperOrientation','portrait');
set(h,'PaperSize',[H,W])
set(h,'PaperPosition',[0,0,W,H])
FS = findall(h,'-property','FontSize');
set(FS,'FontSize',6);
print(h,'-dpng','Phasor-v-compass.png')