Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

why program is not giving plot after execution?

Asked by rizwana junaid on 21 Dec 2011

some times it happens that program doesn't give the plot after the execution. but when it is run again second time then it gives the plot. why is this happening?

4 Comments

Jan Simon on 21 Dec 2011

The contributors of this forum do not use magic crystal balls. Therefore it is impossible to create a meaningful answer.

Naz on 22 Dec 2011

@Jan Simon: Apparently, Sean de Wolski does...)

Jan Simon on 22 Dec 2011

@Naz: Revealing this detail conflicts with the licence conditions.
Feeding the deamon will increase its hunger.

rizwana junaid

Tags

Products

No products are associated with this question.

1 Answer

Answer by Sean de Wolski on 21 Dec 2011
Accepted answer

perhaps you need to add a drawnow at the end of your code (or the end of a for-loop (i.e. the last line inside the for-loop).

1 Comment

rizwana junaid on 22 Dec 2011

thank you for help.

Sean de Wolski

Contact us