Rank: 305 based on 208 downloads (last 30 days) and 17 files submitted
photo

Durga Lal Shrestha

E-mail
Company/University
CSIRO Land and Water
Lat/Long
51.999897, 4.348891

Personal Profile:

webpage:
http://sites.google.com/site/durgalalshrestha/

Professional Interests:
Hydroinformatics, Hydrolgy

 

Watch this Author's files

 

Files Posted by Durga Lal View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
05 Apr 2013 Screenshot Inverse Percentiles of a sample. Calculates the non-exceedance probability (inverse of prctile) for xq values from sample of data x. Author: Durga Lal Shrestha inverse percentile, nonexceedance probabi... 6 0
12 Sep 2012 Screenshot mweka: Running Machine Learning Tool Weka from MATLAB Runs Machine Learning Tool Weka from MATLAB Author: Durga Lal Shrestha weka 87 4
  • 5.0
5.0 | 1 rating
27 Jul 2012 Screenshot Min and Max for Array Find kth smallest or largest values and their indices. Author: Durga Lal Shrestha min, max, largest k, smallest k 3 0
19 Jun 2012 Screenshot custom colormap sets the colormap according to monotonically increasing user defined ranges Author: Durga Lal Shrestha custom colormap, colorbar 7 3
  • 4.0
4.0 | 3 ratings
11 Jun 2012 Screenshot Data Cursor on Mouse Move Display and update the pixel value from image in the figure title bar on mouse movement. Author: Durga Lal Shrestha cursor, windowbuttonmotionfcn, pixel, mouse move 17 1
Comments and Ratings by Durga Lal View all
Updated File Comments Rating
31 Jul 2012 ncx, NetCDF eXplorer Interface for NetCDF visualisation Author: M MA

I too have same problem. couldn't run

??? Error using ==> feval
Invalid MEX-file 'D:\Matlab Downloaded\Flex\ncx\netcdf\mexcdf\pcwin\mexcdf53.dll': D:\Matlab
Downloaded\Flex\ncx\netcdf\mexcdf\pcwin\mexcdf53.dll is not a valid Win32 application.

27 Jul 2012 Min/Max selection Search for k smallest or largest elements in the array Author: Bruno Luong

Sorry for previous rating, it was problem due to the FLEX website. I clicked back button on browser not "Submit" button.

I was searching the function that finds the kth largest or smallest values and locations of 2d array and thought that this is the function. But it appears it produces different results that I expected

list = 1:16;
list = reshape(list,4,4)
[res loc]= mink(list,5)

list =

1 5 9 13
2 6 10 14
3 7 11 15
4 8 12 16

res =

1 5 9 13
2 6 10 14
3 7 11 15
4 8 12 16

loc =

1 1 1 1
2 2 2 2
3 3 3 3
4 4 4 4

I thought it produces the max or min of the whole array. So I have written my own program minmax which produces the results

[res,loci,locj] = minmax(list,5)

out =

1
2
3
4
5

loci =

1
2
3
4
1

locj =

1
1
1
1
2

In terms of speed, I do not think it is efficient, see below

list = 1:1000000;
list = reshape(list,1000,1000);
tic
[res loc]= mink(list,5);
toc

%%
tic
[out,loci,locj] = minmax(list,5);
toc

Elapsed time is 0.046343 seconds.
Elapsed time is 0.039491 seconds.

27 Jul 2012 Min/Max selection Search for k smallest or largest elements in the array Author: Bruno Luong

24 May 2012 Split/Merge Matlab figures. Split/Merge Matlab figures. Author: T. R.

Does not return handles of subplot in SubHdl as these are deleted in line 160.
Handles should be of new object created as:

SubHdl(k) = copyobj(OldGca, FigHdl);
set(SubHdl(k), 'Position', NewPos);

Also it does not produce legends, otherwise it is useful.

20 May 2012 columnlegend Creates a legend with a specified number of columns Author: Simon Henin

The columnlegend hides the box around the legend as it is not possible to force the box to be smaller than the
original height. The work around to display box is to use annotation.

The following code can be added at the very end of "columnlegend" to show the box around legend:

pos = get(legend_h, 'position');
orgHeight =pos(4);
pos(4) = orgHeight/numlines*numpercolumn;
pos(2)=pos(2)+ orgHeight-pos(4);
annotation('rectangle',pos)

Comments and Ratings on Durga Lal's Files View all
Updated File Comment by Comments Rating
24 May 2013 custom colormap sets the colormap according to monotonically increasing user defined ranges Author: Durga Lal Shrestha mohammed

It does not seems to compatible to subplot.

19 Feb 2013 custom colormap sets the colormap according to monotonically increasing user defined ranges Author: Durga Lal Shrestha Troshchanovskii, Alexandr

.

12 Feb 2013 Returns weighted percentiles of a sample Returns weighted percentiles of a sample with six algorithms given weight vector Author: Durga Lal Shrestha Nievinski, Felipe G.

For those looking for a weighted median: wmedian = @(X) wprctile(X,50);

17 Jul 2012 custom colormap sets the colormap according to monotonically increasing user defined ranges Author: Durga Lal Shrestha Liu, Zhi

17 Jul 2012 custom colormap sets the colormap according to monotonically increasing user defined ranges Author: Durga Lal Shrestha Liu, Zhi

How should I adjust it so that I can show gradients between labels?

Top Tags Applied by Durga Lal
probability, statistics, directories, example, files
Files Tagged by Durga Lal View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
05 Apr 2013 Screenshot Inverse Percentiles of a sample. Calculates the non-exceedance probability (inverse of prctile) for xq values from sample of data x. Author: Durga Lal Shrestha inverse percentile, nonexceedance probabi... 6 0
12 Sep 2012 Screenshot mweka: Running Machine Learning Tool Weka from MATLAB Runs Machine Learning Tool Weka from MATLAB Author: Durga Lal Shrestha weka 87 4
  • 5.0
5.0 | 1 rating
27 Jul 2012 Screenshot Min and Max for Array Find kth smallest or largest values and their indices. Author: Durga Lal Shrestha min, max, largest k, smallest k 3 0
19 Jun 2012 Screenshot custom colormap sets the colormap according to monotonically increasing user defined ranges Author: Durga Lal Shrestha custom colormap, colorbar 7 3
  • 4.0
4.0 | 3 ratings
11 Jun 2012 Screenshot Data Cursor on Mouse Move Display and update the pixel value from image in the figure title bar on mouse movement. Author: Durga Lal Shrestha cursor, windowbuttonmotionfcn, pixel, mouse move 17 1

Contact us