%%% scaleup_parforMathwork.m
%{
In this example, you start on your local multicore desktop and measure the 
time required to run a calculation, as a function of increasing numbers of 
workers. The test is called a strong scaling test. It enables you to measure 
the decrease in time required for the calculation if you add more workers. 
This dependence is known as speedup, and allows you to estimate the parallel 
scalability of your code. You can then decide whether it is useful to increase 
the number of workers in your parallel pool, and scale up to cluster and cloud 
computing.

%}
%%
parpool(1);
a = MyRand(1000);
%delete(gcp);
%{
ans = 

 Pool with properties: 

            Connected: true
           NumWorkers: 1
              Cluster: local
        AttachedFiles: {}
    AutoAddClientPath: true
          IdleTimeout: 30 minutes (30 minutes remaining)
          SpmdEnabled: true

>> a = MyRand(1000);
Elapsed time is 144.843540 seconds.
%}