Interesting questions, I am currently investigating this topics.
I will post my results as soon as I can.
It seems I am more interested in faster analog read. I am told that because of the I2C expander, the analog read is grossly limited to a mere 100+Hz. That's terrible. But it seems that I can access fast analog read through the linux operating system. But I am not told how much faster it is on linux. I have not used linux on arduino before but I have it now installed. Now that I have linux working on ssh putty for the galileo board, what next?
From this board (Sergey's Blog - Malinov Family Web Presence), I can see that typing once the analog port is connected, the value at A0 can be read with
root@clanton:~# cat /sys/bus/iio/devices/iio\:device0/in_voltage0_raw
But how fast is this?
Here is what I got, the AnalogRead does not have different modes like fast Read, currently has only one speed and is about 7 to 8 millisecond (as you mentioned is 100 Hz approximately). You can control the speed of the sampling using the delay function as long as they stay under or 100 Hz, any speed requirement for more than 100Hz is currently unsupported.
Also, As mentioned in post https://communities.intel.com/message/207904#207904 , OUTPUT_FAST mode is an option for pin 2 and 3 only and it can achieve a speed of 2.93 Mhz in destructive mode.
Regarding the Matlab package, Matlab will be the appropriate place to look for support information for their library/package.
Can you please detail how to acces fastgpio read with galileo gen 2 ?