How can I plot M with SIR ?
显示 更早的评论
How can I plot the values of M which are 1,2,3 and 4 in this example with the opposite values of SIR? I mean a graph that plots M=1 with the opposite value, M=2 with the opposite value...etc Thanks
回答(1 个)
Star Strider
2017-10-14
I am not certain what result you want.
Try this:
N = 3;
Q = sqrt(3) * N;
n = 2;
Mfcn = @(M) 1./(M * 6) .* Q.^n;
M = 1:4;
SIR = cumsum(Mfcn(M));
figure(1)
plot(M, SIR)
grid
类别
在 帮助中心 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!