Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

HTML
<iframe width="600" height="450" src="//www.youtube.com/embed/iSVEN_feRKA?rel=0" frameborder="0" allowfullscreen></iframe>

...


Pre-Allocation Procedure

We pre-allocate the x and t arrays using the zeros function as shown below.

HTML
 <iframe width="600" height="450" src="//www.youtube.com/embed/BFR8WjtYwNg?rel=0" frameborder="0" allowfullscreen></iframe> 


Check Change in Run-Time due to Pre-Allocation

We next use the "profiler" in MATLAB to check how much the run-time decreases due to pre-allocation.

HTML
 <iframe width="600" height="450" src="//www.youtube.com/embed/bfqQTGe_pxU?rel=0" frameborder="0" allowfullscreen></iframe>