Rank: 809 based on 161 downloads (last 30 days) and 30 files submitted
photo

Mukhtar Ullah

E-mail
Company/University
University of Rostock

Personal Profile:

 

Watch this Author's files

 

Files Posted by Mukhtar Ullah View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
01 Sep 2011 Screenshot RM2SF Change the typeface of non-math text to sans-serif Changes the typeface of non-math text with latex interpreter from roman to sans-serif. Author: Mukhtar Ullah text latex roman sans..., rm2sf text latex roma... 6 0
16 Nov 2010 FINDARRAY Find one array within another. Author: Mukhtar Ullah find, vector, array, matrix 7 2
20 Oct 2010 BINOMIAL (Binomial coefficient.) Binomial coefficient of arrays Author: Mukhtar Ullah binomial coefficient, combinations, arrays, mathematics 12 11
  • 4.2
4.2 | 5 ratings
19 Oct 2010 Screenshot SETAXES creates handles of nested functions for fixing problems with MATLAB figures. Author: Mukhtar Ullah annotation, customization, publication quality, latex, small figures, clipped labels 5 4
  • 5.0
5.0 | 4 ratings
19 Feb 2008 FAPPENDL FAPPENDL Write line to file in an intuitive syntax rather than FPRINTF Author: Mukhtar Ullah fprintf file text wri... 2 4
  • 3.5
3.5 | 2 ratings
Comments and Ratings by Mukhtar Ullah View all
Updated File Comments Rating
24 Jan 2012 legendflex.m: a more flexible, customizable legend Create a legend with more flexible positioning and labeling capabilities Author: Kelly Kearney

Thanks Kelly for your explanation. I am not sure what will I loose if I keep those lines commented out. At the moment, I am avoiding any figure resize when both legendflex and panel are at play.

19 Jan 2012 Panel Like subplot, but easier, and WYSIWYG export to file. Also fixes dashed/dotted lines in export. Author: Ben Mitch

Thanks Ben. That is the kind of an answer I was expecting. I had this wrong perception that I can only access methods from an instance p, but you saved me!

Best regards

18 Jan 2012 Panel Like subplot, but easier, and WYSIWYG export to file. Also fixes dashed/dotted lines in export. Author: Ben Mitch

Sorry, I forgot one line. Following is the correct code I use

cvars = who;
foundpanel = false;
for i=1:numel(cvars)
try
foundpanel = evalin('base', ['isa(' cvars{i} ',''panel'')']);
catch erri
end
if foundpanel
break;
end
end

18 Jan 2012 legendflex.m: a more flexible, customizable legend Create a legend with more flexible positioning and labeling capabilities Author: Kelly Kearney

I just realized that it is possible to find the legendflex axes by
ax = getappdata(hfig, 'legflexchildren')
I now have another problem. When I use legendflex together with panel
http://www.mathworks.co.uk/matlabcentral/fileexchange/20003-panel
any attempt to resize the figure results in the following error
Error using panel.resizeCallback
Cannot access method 'resizeCallback' in class 'panel'.

Error in legendflex>resizefig (line 637)
feval(Lf.oldrsz, hfig, ed);

Error using drawnow
Error while evaluating figure ResizeFcn

It turned out that commenting line 637 solves my problem.
Any idea of fixing this in a future release?

Thanks

14 Jan 2012 legendflex.m: a more flexible, customizable legend Create a legend with more flexible positioning and labeling capabilities Author: Kelly Kearney

Thank you Kelly for clarifying that. It occurred to me because with legend, it is possible to set properties such as interpreter, string,..using set directly on the axes handle.
A minor addition to legendflex will make it easier to find its handle using findobj and findall function. For example, if you add a tag 'legendflex' to the axes, findobj(gcf, 'tag', 'legendflex') would locate the axes.

Mukhtar

Comments and Ratings on Mukhtar Ullah's Files View all
Updated File Comment by Comments Rating
05 Mar 2014 BINOMIAL (Binomial coefficient.) Binomial coefficient of arrays Author: Mukhtar Ullah Michael

Oops! I assumed you wrote the code the way you wrote the description. Once I read your file, I see that you did it exactly the way I described. Great job by you!

05 Mar 2014 BINOMIAL (Binomial coefficient.) Binomial coefficient of arrays Author: Mukhtar Ullah Michael

This function will overflow when n is large. A better solution is:

binomial = @(n,k) exp(gammaln(n+1)-gammaln(k+1)-gammaln(n-k+1));

Otherwise, nice work!

05 Sep 2013 ISWHOLE True for integers(whole numbers). Author: Mukhtar Ullah Srinivas

works as expected. just make sure to delete the first line -- this file has two function declarations in it.

26 Jul 2013 ROUND2 Round to a specified number of decimals. Author: Mukhtar Ullah Andrew

16 Nov 2012 SETAXES creates handles of nested functions for fixing problems with MATLAB figures. Author: Mukhtar Ullah Alessandro

Great code!
There is a small problem: if I export in eps the arrows are not rendered correctly.

Any idea?

Contact us