Please use 'help file-name' in MATLAB command window to see the syntax and examples for each of the following scripts:
Extracting wind scenarios in MATLAB (m-file)
Visualization of wind scenarios (m-file)
Plotting demand curve (m-file)