MATLAB: How to format unknown filename with urlread

urlread

Hi all.
I must retrieve .txt file from a url like this:
but I don't succeed in using urlread, because the number between 'vadar_' and '_m0' is generating in real time (after a cgi query reported on web toolbar). How can I use a format mode for any unknown number in urlread?
Regards.

Best Answer

If you are getting it from a query then you can probably get it as a string. Then you can form the URL name as
['http://vadar.wishartlab.com/tmp/vadar_' NUMBERSTRING '_m0.stats.txt']