Rank: 366 based on 362 downloads (last 30 days) and 19 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/


 

Watch this Author's files

 

Files Posted by Durga Lal Shrestha View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
16 Sep 2014 Screenshot Comparing two NetCDF files nccmp compares two NetCDF files Author: Durga Lal Shrestha nccmp, netcdf 7 0
11 Sep 2014 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... 24 1
  • 5.0
5.0 | 2 ratings
11 Sep 2014 Screenshot Continuous rank probability score Calculates continuous rank probability score (CRPS) for probabilistic and ensemble forecasts Author: Durga Lal Shrestha crps, forecast verification, ensemble forecast, probabilistic forecas... 18 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 76 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 17 0
Comments and Ratings by Durga Lal Shrestha View all
Updated File Comments Rating
06 Nov 2014 SLIDEFUN (v4.0, sep 2008) apply function to a moving window over a vector Author: Jos (10584)

It would be good if this function checks that input is vector. Otherwise for matrix it produces erroneous values.

16 Sep 2014 IND2SUBVECT: Multiple subscript vector from linear index. A perversion of IND2SUB that returns a vector of N indices rather than N individual variables. Author: David Fass

IND2SUBVECT produces error message when IND is vector.

IND = [3 4 5 6]
s = [3,3];

IJ = ind2subVect(s,IND)

In an assignment A(I) = B, the number of elements in B and I must be the same.

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.

Comments and Ratings on Durga Lal Shrestha's Files View all
Updated File Comment by Comments Rating
26 Sep 2014 custom colormap sets the colormap according to monotonically increasing user defined ranges Author: Durga Lal Shrestha Holger Hoffmann

Great Function. Love it.

The only issue is, when making maps with contourf() with EdgeColor on and changing subsequently the colors with CUSTOMCMAP(), the isolines are wrong (still the old ones). However, that's not a real issue / not the job of CUSTOMCMAP()

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 Julia Mikhalevsky

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 Alexandr Troshchanovskii

.

Contact us