Rank: 2384 based on 46 downloads (last 30 days) and 4 files submitted
photo

Ahmed A. Selman

E-mail
Company/University
University of Baghdad

Personal Profile:

Ph.D. in theoretical nuclear physics, author of four books and lecturer at the College of Science-University of Baghdad since 2008. Interested with image processing applications in astronomy mainly. I begun using Matab since the year 2000 (I think it was ver.5.), and still there is much to learn about.

Professional Interests:
Theoretical Physics

 

Watch this Author's files

 

Files Posted by Ahmed View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
19 Apr 2013 Screenshot Blancmange-Takagi Function Used to plot the Blancmange-Takagi function of order (w) and range (x). Author: Ahmed A. Selman blancmangetakagi func..., mathematics 8 1
16 Apr 2013 Screenshot LVPermute A simple (Line Vector Permutation) function. Author: Ahmed A. Selman permutation, mathematics, physics 10 0
25 Mar 2013 immovieFolder.m IMMOVIEFOLDER records a movie from a group of image files in a specified folder, and plays it. Author: Ahmed A. Selman image processing, data import 11 0
25 Mar 2013 folderFiles.m Reads filename contents of a folder. Author: Ahmed A. Selman data import, data exploration 17 2
Comments and Ratings by Ahmed View all
Updated File Comments Rating
29 Mar 2013 Panel Like subplot, but easier, and WYSIWYG export to file. Also fixes dashed/dotted lines in export. Author: Ben Mitch

Very nice function, elegantly written.

22 Mar 2013 folderFiles.m Reads filename contents of a folder. Author: Ahmed A. Selman

Thanks a lot Jan, these are useful comments. However, there is a line of code at the very end:

rmpath(inFolder);

which removes the newly added directory from the path, just in case it confuses the original (user pre-set) Matlab path.

Once again, this simple function reads the (contents of a folder)-if not specified, these contents could be files and sub-folders.

My regards.

Comments and Ratings on Ahmed's Files View all
Updated File Comment by Comments Rating
10 May 2013 Blancmange-Takagi Function Used to plot the Blancmange-Takagi function of order (w) and range (x). Author: Ahmed A. Selman KHMOU, Youssef

i would like to know in what field of physics this function is used ?

22 Mar 2013 folderFiles.m Reads filename contents of a folder. Author: Ahmed A. Selman A. Selman, Ahmed

Thanks a lot Jan, these are useful comments. However, there is a line of code at the very end:

rmpath(inFolder);

which removes the newly added directory from the path, just in case it confuses the original (user pre-set) Matlab path.

Once again, this simple function reads the (contents of a folder)-if not specified, these contents could be files and sub-folders.

My regards.

21 Mar 2013 folderFiles.m Reads filename contents of a folder. Author: Ahmed A. Selman Simon, Jan

Adding a folder temporarily to the Matlab PATH can have dangerous side-effects. As far as I can see, this is not needed at all, because you use the absolute path name already: "fileNames = fullfile(inFolder)". Here "fullfile" is actually useless, such that I'm confused.
Your code does not distinguish folders and files, but the name of the function and the output implies, that only files are returned.

CHAR matrices are not very useful in Matlab, such that I think this would be better:
function out = folderFiles(varargin)
d = dir(fullfile(vargargin{:}));
out = {d([d.isdir]==0).name};

I like the documentation of this function: (almost) a H1-Line (delete the leading empty comment line), description of inputs and outputs, examples, date and author, "See also" line. This is very good!

Contact us