Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
How do I plot this E= (|I|^2)/8π^2[costheta-costheta^2]/(2).
조회 수: 3 (최근 30일)
이전 댓글 표시
How do I plot this E= (|I|^2)/8π^2[costheta-costheta^2]/(2).
댓글 수: 1
John D'Errico
2017년 7월 8일
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.
답변 (1개)
Joshua
2017년 7월 8일
편집: Joshua
2017년 7월 8일
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')
댓글 수: 1
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!