I used this approch
% Create a connection to the Raspberry Pi hardware
raspiObj = raspi;
system(raspiObj,'raspistill -o /home/pi/Pictures/"name.jpg"')
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!