Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

How do I plot this E= (|I|^2)/8π​^2[costhet​a-costheta​^2]/(2).

1 visualizzazione (ultimi 30 giorni)
Adefola Alowolodu
Adefola Alowolodu il 8 Lug 2017
Chiuso: MATLAB Answer Bot il 20 Ago 2021
How do I plot this E= (|I|^2)/8π^2[costheta-costheta^2]/(2).
  1 Commento
John D'Errico
John D'Errico il 8 Lug 2017
What have you tried? IF nothing then why not? It appears, given that you are not even using valid MATLAB notation, that you have not even read the getting started tutorials. So why not try reading the manual FIRST? You might learn something. At least you would learn enough to create a fairly simple plot.

Risposte (1)

Joshua
Joshua il 8 Lug 2017
Modificato: Joshua il 8 Lug 2017
I was a little confused by what belonged in the denominator and numerator, along with what "I" is (I took it to be the imaginary number). However, I think you want something like this
theta=linspace(-2*pi,2*pi,100);
E=-1*(cos(theta)-cos(theta).^2)/(2*8*pi^2);
plot(theta,E)
xlabel('\theta')
ylabel('E')

Questa domanda è chiusa.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by