Having trouble getting the plot
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
so I am having trouble getting this to display. I will be changing the value of big N to different values but I can't even get this to display properly. Im not sure what I am doing wrong here can anybody help
N = 1;
n = 0:1:150;
amplitude = (N.^n)*exp(-N)/(factorial(n))
plot(n,amplitude);
0 件のコメント
回答 (1 件)
Azzi Abdelmalek
2013 年 2 月 5 日
編集済み: Azzi Abdelmalek
2013 年 2 月 5 日
factorial(n) is an array then you have to use ./ instead of /
amplitude = (N.^n)*exp(-N)./(factorial(n))
0 件のコメント
この質問は閉じられています。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!