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
Star Strider el 14 de Oct. de 2017

0 votos

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.

Etiquetas

Preguntada:

el 14 de Oct. de 2017

Respondida:

el 14 de Oct. de 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by