Consider using my IQML (IQFeed-Matlab) connector for this. IQML enables both synchronous (blocking) and asynchronous (background) queries, that are fetched either serially or in parallel (using the Matlab Parallel Computing Toolbox). A simple usage example:
data = IQML('history', 'symbol','IBM');
plot(datetime({dd.Datestamp}), [dd.Close])
IQML was developed with top performance, reliability and usability in mind. IQML supports 100% of IQFeed's API functionality. It is fully documented, continuously maintained/improved, and I am happy to provide support.