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 - The Fusion of Science and Community**

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

# Need help in MATLAB

Loading...

Similar Threads - Need help MATLAB | Date |
---|---|

Matlab Help needed to fix a matlab code | Nov 8, 2017 |

Need help with integral | Dec 23, 2015 |

Need help plotting Fourier series in matlab | Sep 24, 2013 |

Need help with Matlab's Mapping Toolbox | Feb 10, 2013 |

Please I need a Help with matlab code (Controlling the LEGO NXT Using MatLab) | Dec 7, 2012 |

**Physics Forums - The Fusion of Science and Community**