Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
While loop won't plot while remebering numbers
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I'm trying to write a kind of gambling game, in which all the results should be plotted in a graph. I used a While loop and nestled a switch in it, the program works but it won't plot. Would be great to get some help!
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/158676/image.png)
Small piece of the programm
0 comentarios
Respuestas (1)
Kelly Kearney
el 5 de Dic. de 2016
You're overwriting b each time though the loop, and not saving values to an array as you go along. So at the time of plotting, both b and n are scalars. And if you plot a single plot point without a marker, nothing will be visible.
0 comentarios
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!