- #1

- 9

- 0

## Main Question or Discussion Point

Hi Everyone,

I am a new Matlab User, I am want to plot the equation y=cos(A*x) + i*sin(A*x)

where A = 400*pi/340 and want to plot y and vary x from pi:0.1:pi

clear all;

close all;

A = 400*pi/340;

x = -180:0,1:180;

a=cos(A*x);

b=i*sin(A*x);

i= imag(b);

hold on;

grid on;

plot(a,i, 'r-*','MarkerEdgeColor','b');

xlabel('Distance');

ylabel('Primary Source');

title('Simulation Results');

I am a new Matlab User, I am want to plot the equation y=cos(A*x) + i*sin(A*x)

where A = 400*pi/340 and want to plot y and vary x from pi:0.1:pi

clear all;

close all;

A = 400*pi/340;

x = -180:0,1:180;

a=cos(A*x);

b=i*sin(A*x);

i= imag(b);

hold on;

grid on;

plot(a,i, 'r-*','MarkerEdgeColor','b');

xlabel('Distance');

ylabel('Primary Source');

title('Simulation Results');