MATLAB Answers

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?


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.

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.



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.

Discover MakerZone

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

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!