Rank: 27 based on 6352 downloads (last 30 days) and 27 files submitted
photo

Bruno Luong

E-mail

Personal Profile:

Professional Interests:
No professionall intesrests everything is hobby!

 

Watch this Author's files

 

Files Posted by Bruno View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
19 Oct 2009 Pseudo-inverse Factorize a matrix for pseudo-inverse calculation purpose Author: Bruno Luong moorepenrose, pseudoinverse, qr, tikhonov, regularization, minimum norm 319 0
13 Oct 2009 ISMEMBERF Floating-point ISMEMBER (i.e., with round-off tolerance) Author: Bruno Luong round off, numerical errors, float, ismember 260 4
  • 5.0
5.0 | 1 rating
26 Sep 2009 Min/Max filter Multidimensional non-linear min/max filtering Author: Bruno Luong dilatation, running min, running max, erosion, pattern recognition, filtering 358 0
16 Sep 2009 FFT-based convolution Discrete convolution using FFT method Author: Bruno Luong conv2, gpu, fft, jacket, convn, conv 307 0
16 Sep 2009 All Permutations of integers with sum criteria All Pernutations of integers with sum criteria Author: Bruno Luong polynomial, l1, permutation, multivirables, order, permutation l1 polyno... 262 3
  • 5.0
5.0 | 3 ratings
Comments and Ratings by Bruno View all
Updated File Comments Rating
23 Oct 2009 Conjugate Gradient Optimizer This routine lets you optimize large scale linear systems Author: Peter

Not sure what advantage of conjgrad over Matlab builtin function LSQR (where preconditioning is possible):

x = lsqr(@afun,b);
    
function y = afun(x,transp_flag)
        if strcmp(transp_flag,'transp')
            y = A'*x;
        else
            y = A*x;
        end
    end

10 Oct 2009 ISMEMBERF Floating-point ISMEMBER (i.e., with round-off tolerance) Author: Bruno Luong

Thank you David for pointing out the bug. I better workaround IMO is change the line #257 to:
dS = realmin(class(S));
while the new version of ISMEMBERF is submitted.

28 Sep 2009 Min/Max selection Search for k smallest or largest elements in the array Author: Bruno Luong

Marcello,

Do you have MEX setup? If not, type he following in command line:
>> mex -setup

If it's already installed you have to locate mexopts.bat file somewhere under the directory $MATLABROOT (where the Matlab is installed), then modify OPTPATH variable in line #8 and line #12 of GETMEXOPTS.

then try installation again.

Bruno

27 Sep 2009 Don't let that INV go past your eyes; to solve that system, FACTORIZE! A simple-to-use object-oriented method for solving linear systems and least-squares problems. Author: Tim Davis

What mathworks are waiting to incorporate this package into Matlab?

05 Sep 2009 NUMUNIQUE Returns unique elements in an array and all the indices for the repetitious values. Author: Zhigang Xu

To make the function work for other integer class, I would suggest to modify the two lines:

d=diff([NaN; x]);
d=[true; d~=0];

to:

d=diff(x);
d=[true; d~=0];

Otherwise unexpected result is obtained with
[u p]=numunique(uint8([0 1]))

Comments and Ratings on Bruno's Files View all
Updated File Comment by Comments Rating
13 Oct 2009 ISMEMBERF Floating-point ISMEMBER (i.e., with round-off tolerance) Author: Bruno Luong Vargas Aguilera, Carlos Adrian

This is a nice function, thanks bruno for sharing it. You all may check out my NUMCMP function too.

http://www.mathworks.com/matlabcentral/fileexchange/21190-numcmp-m

Cheers, Carlos

13 Oct 2009 ISMEMBERF Floating-point ISMEMBER (i.e., with round-off tolerance) Author: Bruno Luong Simon, Jan

Beside the fact, that this is of practical use and works as expected, it helps to answer dozens of questions in the newsgroup: why does ANY((0:0.1:1) == 0.3) reply FALSE???
The help is complete and descriptive, contains author and date, exact and really useful comments. The H1-line is not helpful.
Minor bug in line 125: if ndims(A) ~= 2 || ndims(A) ~= 2. A simple [tf, loc] output might be more efficient than the VARARGOUT/Cell/DEAL/MIN/MAX/NARGOUT constructions.

10 Oct 2009 ISMEMBERF Floating-point ISMEMBER (i.e., with round-off tolerance) Author: Bruno Luong Luong, Bruno

Thank you David for pointing out the bug. I better workaround IMO is change the line #257 to:
dS = realmin(class(S));
while the new version of ISMEMBERF is submitted.

09 Oct 2009 ISMEMBERF Floating-point ISMEMBER (i.e., with round-off tolerance) Author: Bruno Luong David

PROBLEM: ismemberf([0 1 2], 0) will return [0 0 0]. It seems this is because line 263 will auto-configure tol to zero which causes unexpected results in ihi (line 274) that causes tf to be set incorrectly in line 276.

WORK-AROUND: This behavior can be avoided if 'tol' is explicitly set when calling ismemberf().

03 Oct 2009 Min/Max selection Search for k smallest or largest elements in the array Author: Bruno Luong Á, Rencheng

Thanks! It is very useful!

Top Tags Applied by Bruno
array, eval, hist, histc, histogram
Files Tagged by Bruno View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
19 Oct 2009 Pseudo-inverse Factorize a matrix for pseudo-inverse calculation purpose Author: Bruno Luong moorepenrose, pseudoinverse, qr, tikhonov, regularization, minimum norm 319 0
13 Oct 2009 ISMEMBERF Floating-point ISMEMBER (i.e., with round-off tolerance) Author: Bruno Luong round off, numerical errors, float, ismember 260 4
  • 5.0
5.0 | 1 rating
26 Sep 2009 Min/Max filter Multidimensional non-linear min/max filtering Author: Bruno Luong dilatation, running min, running max, erosion, pattern recognition, filtering 358 0
16 Sep 2009 FFT-based convolution Discrete convolution using FFT method Author: Bruno Luong conv2, gpu, fft, jacket, convn, conv 307 0
16 Sep 2009 All Permutations of integers with sum criteria All Pernutations of integers with sum criteria Author: Bruno Luong polynomial, l1, permutation, multivirables, order, permutation l1 polyno... 262 3
  • 5.0
5.0 | 3 ratings
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com