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 个)

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!

Translated by