How can I plot M with SIR ?
Mostrar comentarios más antiguos
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
Respuestas (1)
Star Strider
el 14 de Oct. de 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
Categorías
Más información sobre Line Plots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!