what is the wrong in this ? the plot isn't appear. what should i do to make the plot appear ?

Respuestas (1)

Image Analyst
Image Analyst el 28 de Dic. de 2017

0 votos

Try putting drawnow inside the loop, or else (like most people would) make Xr and i and array and plot the whole array only once the loop has finished, that is, call plot() outside the loop. Also don't use i as a variable name - it's not recommended since it's the imaginary variable.

Categorías

Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.

Preguntada:

el 28 de Dic. de 2017

Respondida:

el 28 de Dic. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by