How can I plot M with SIR ?
Show older comments
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
Answers (1)
Star Strider
on 14 Oct 2017
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
Categories
Find more on Line Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!