Hi Everyone,(adsbygoogle = window.adsbygoogle || []).push({});

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');

**Physics Forums | Science Articles, Homework Help, Discussion**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Need help in MATLAB

**Physics Forums | Science Articles, Homework Help, Discussion**