Rank: 228 based on 388 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... 33 1
  • 5.0
5.0 | 2 ratings
12 Sep 2012 Screenshot mweka: Running Machine Learning Tool Weka from MATLAB Runs Machine Learning Tool Weka from MATLAB Author: Durga Lal Shrestha weka 78 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 15 0
19 Jun 2012 Screenshot custom colormap sets the colormap according to monotonically increasing user defined ranges Author: Durga Lal Shrestha custom colormap, colorbar 19 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 20 1
Comments and Ratings by Durga Lal View all
Updated File Comments Rating
10 Jun 2014 Scalable Vector Graphics (SVG) Export of Figures Converts 3D and 2D MATLAB plots to the scalable vector format (SVG). Author: Juerg Schwizer

It seems the plot2svg does not support bold font for label and texts. It is said in description of the script that Latex commands are interpreted (with some limitations). I tried
text(1 ,0.5,0,'{\bf TEST}','Interpreter','latex','Rotation',90);

But it does not produce bold font. Is there any solution to produce bold font?

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.

Comments and Ratings on Durga Lal's Files View all
Updated File Comment by Comments Rating
05 Mar 2014 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 Mikhalevsky, Julia

09 Sep 2013 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 Terry

Nice one! Seems to work well.

Would be nice to add a check that if only one argin is entered (one column/vector) - then it calcs inverse prctile on each entry of the column/vector.

For example, I have a vector
myvector=[0.8 0.5 .2 0.6 0.8 0.5 0.3 0.6 0.9 1.3]'
and I want to find what percentile each corresponds to, so I run
invprctile(myvector,myvector)

It would be a bit cleaner to be able to just call invprctile(myvector)

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);

Contact us