There are a few easy ways to get the data from yahoo finance directly. The following is the example for matlab code as your reference:...
Separate names with a comma.