please can any one help me i whrite this code to plot a figure but it give me an empty one ?
Información
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
Mostrar comentarios más antiguos
ti=40;
tb=320;
alpha=ti/tb;
k=256 ;
N=100;
peff= k/(N*(1-(1/N))^(1-k)) - k + (N*(1-(1/N)))*(alpha-1) ;
plot(peff);
Respuestas (2)
Azzi Abdelmalek
el 26 de Jul. de 2015
0 votos
Your are plotting one point
2 comentarios
Azzi Abdelmalek
el 26 de Jul. de 2015
If N=1:100
ti=40;
tb=320;
alpha=ti/tb;
k=256 ;
N=1:100;
peff= k./(N.*(1-(1./N)).^(1-k)) - k + (N.*(1-(1./N)))*(alpha-1) ;
plot(peff);
safi marwa
el 26 de Jul. de 2015
Star Strider
el 26 de Jul. de 2015
The plot is not empty. Changing the plot call in your code to:
plot(peff, 'bp')
will demonstrate this. You need to define your variables as vectors. Since I don’t know what you want to do, this is the closest I can come to a solution.
3 comentarios
safi marwa
el 26 de Jul. de 2015
Star Strider
el 26 de Jul. de 2015
It’sz not a very interesting plot, but this seems to work:
ti=40;
tb=320;
alpha=ti/tb;
k=256 ;
N=1:100;
peff= k./(N.*(1-(1./N)).^(1-k)) - k + (N.*(1-(1./N))).*(alpha-1) ;
plot(peff);
safi marwa
el 26 de Jul. de 2015
La pregunta está cerrada.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!