@(x)strsplit(x,'.'){end} ans('what..is..this..file')
Standard input is empty
ans = @(x) strsplit (x, '.') {end} ans = file
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!