Rank: 2380 based on 60 downloads (last 30 days) and 6 files submitted
photo

Ahmed A. Selman

E-mail
Company/University
University of Baghdad
Lat/Long
33.29668, 44.412067

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.


 

Watch this Author's files

 

Files Posted by Ahmed A. Selman View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
18 Nov 2014 dec2any(x,n) Decimal (base 10) number to any (base 2 to 10) converion function. Author: Ahmed A. Selman mathematics 15 0
18 Nov 2014 dec2senary(num) Decimal (base 10) number to senary (base 6) converion function. Author: Ahmed A. Selman mathematics 10 0
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 7 1
16 Apr 2013 Screenshot LVPermute A simple (Line Vector Permutation) function. Author: Ahmed A. Selman permutation, mathematics, physics 6 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 5 0
Comments and Ratings by Ahmed A. Selman 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 A. Selman's Files View all
Updated File Comment by Comments Rating
17 Oct 2014 folderFiles.m Reads filename contents of a folder. Author: Ahmed A. Selman Belal

thanks

10 May 2013 Blancmange-Takagi Function Used to plot the Blancmange-Takagi function of order (w) and range (x). Author: Ahmed A. Selman Youssef KHMOU

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 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.

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

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