Rank: 640 based on 110 downloads (last 30 days) and 30 files submitted
photo

Mukhtar Ullah

E-mail
Company/University
University of Rostock

Personal Profile:
Professional Interests:
stochastic modelling and simulation, statistics, signal processing

 

Watch this Author's files

 

Files Posted by Mukhtar 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... 1 0
16 Nov 2010 FINDARRAY Find one array within another. Author: Mukhtar Ullah find, vector, array, matrix 3 2
20 Oct 2010 BINOMIAL (Binomial coefficient.) Binomial coefficient of arrays Author: Mukhtar Ullah binomial coefficient, arrays, combinations, mathematics 8 9
  • 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, latex, publication quality, small figures, customization, clipped labels 6 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 View all
Updated File Comments Rating
24 Jan 2012 legendflex: a more flexible 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: a more flexible 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: a more flexible 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's Files View all
Updated File Comment by Comments Rating
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?

08 May 2012 MULTINOMIAL Multinomial coefficients. Author: Mukhtar Ullah Holdaway, David

The input checking and explanation are very nice, I almost feel bad that I would almost certainly just inline the one line of calculation
"c = floor(exp(gammaln(n+1) - sum(gammaln(k+1),dim)) + .5); "
whenever I use it though!

18 Apr 2012 ROUND2 Round to a specified number of decimals. Author: Mukhtar Ullah Zechmann, Edward

Roundn is in the Mapping Toolbox which costs approximately $1,000.00 for a single user license. It is much simpler; however, it has fewer features and costs $1,000.00. The syntax for using roundn is reproduced from the Mathworks website to help anyone who reads this comment thread. Please let me know if a program with the simple syntax of Roundn would be of benefit to the Matlab Central Users Community.

roundn - Round to multiple of 10n
Syntax

roundn(x,n)
Description

roundn(x,n) rounds each element of x to the nearest multiple of 10n. The variable n must be scalar, and integer-valued. For complex x, the imaginary and real parts are rounded independently. For n = 0, roundn gives the same result as round. That is, roundn(x,0) == round(x).

06 Apr 2012 ROUND2 Round to a specified number of decimals. Author: Mukhtar Ullah Kathuria, Humayun

Guys! Use "roundn" if you want to use a simple MATLAB built-in function.

08 Mar 2012 SETAXES creates handles of nested functions for fixing problems with MATLAB figures. Author: Mukhtar Ullah Kotliarov, Yuri

Great function! Switched to it from rotateticklabel.

Top Tags Applied by Mukhtar
utilities, array, matrix, mathematics, matrices
Files Tagged by Mukhtar 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... 1 0
16 Nov 2010 FINDARRAY Find one array within another. Author: Mukhtar Ullah find, vector, array, matrix 3 2
20 Oct 2010 BINOMIAL (Binomial coefficient.) Binomial coefficient of arrays Author: Mukhtar Ullah binomial coefficient, arrays, combinations, mathematics 8 9
  • 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, latex, publication quality, small figures, customization, clipped labels 6 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

Contact us