Sei sulla pagina 1di 1

function [] = cmplxplotter( x,y,z )

% this function calculates real and imaginary parts of a


complex vector and
% plots the same with respect to the other given vector in
x-axis
r=real(x);
img=imag(x);

figure
hold on
title('real part');
plot(y,r);
xlabel('w/wn');
ylabel(z);

Potrebbero piacerti anche