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?

??? 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.

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

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

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)

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

5

05 Mar 2014

Inverse Percentiles of a sample.
Calculates the non-exceedance probability (inverse of prctile) for xq values from sample of data x.

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)

5

24 May 2013

custom colormap
sets the colormap according to monotonically increasing user defined ranges

Comment only