Search Comments and Ratings

go

Comments and Ratings

   
Date File Comment by Comment Rating
20 Aug 2009 Pareto Front Two efficient algorithms to find Pareto Front Author: Yi Cao Cao, Yi

Yes, you can. For a higher dimension, you have to provide much more data points.

HTH
Yi

21 Jun 2009 Learning the Unscented Kalman Filter An implementation of Unscented Kalman Filter for nonlinear state estimation. Author: Yi Cao Cao, Yi

Peter,

This means the iteration of ukf is unstable. You have to adjust P, Q, etc to make it stable.

Yi

06 Jun 2009 Learning the Unscented Kalman Filter An implementation of Unscented Kalman Filter for nonlinear state estimation. Author: Yi Cao Cao, Yi

Right. However, K=P12*inv(P2). Hence, K*P2 = P12.
This leads to K*P2*K' = P12*K'. Therefore, P=P1-P12*K'.

HTH
Yi

28 Apr 2009 Learning the Extended Kalman Filter An implementation of Extended Kalman Filter for nonlinear state estimation. Author: Yi Cao Cao, Yi

For continuous-time EKF, please look at http://www.mathworks.com/matlabcentral/fileexchange/18485

21 Apr 2009 NVIDIA CUDA-based bilinear (2D) interpolation Incredible speed boost in comparison to the Matlab implementation. (interp2) Author: Gerald Buchgraber Cao, Yi

The code works as described. On my GeForce 8400 GPU, it can achieve over 200 on relative speedup. The nvmex compiler also works smoothly on MATLAB R2009A. Excellent!

20 Apr 2009 Learning the Unscented Kalman Filter An implementation of Unscented Kalman Filter for nonlinear state estimation. Author: Yi Cao Cao, Yi

It seems that your model is not stable. You may wish to adjust P, Q and R matrices to see if this helps.

Yi

09 Apr 2009 Fast 2D GPU-based convolution Graphics chip assisted fast 2d convolution Author: Alexander Huth Cao, Yi

It works as expected on my Geforce 8400 GPU.

08 Apr 2009 Finding the Similar Entries: A Quantitative Approach based on CPU Runtime Behavior Entry to Matlab contest Spring 2009 Author: C Jethro Lam Cao, Yi

Beautiful analysis. The similarity measure is novel.

06 Apr 2009 Complex step Jacobian Calculate Jacobian using complex step differentiation Author: Yi Cao Cao, Yi

Angshul,

eps is the minimal distinguishable vnumer for a particular precision system. For double precision, eps = 2^(-52) and for single precision, eps = 2^(-23). Use "help eps" to find more details.

The complex step differentiation approach can use the minimum step size to get the maximum accuracy. Hence eps is the best step the algorithm can use.

HTH.

Yi

06 Apr 2009 Bidirectional Branch and Bound Solvers for Worst Case Loss Minimization Two branch and bound solvers using worst case loss criterion to select controlled variables. Author: Yi Cao Cao, Yi

Mohammad,

If you are a real user who is concerned about this issue, please drop me an email. I will clarify this to you.

Yi

03 Apr 2009 Configurable Simulink Model for DC-DC Converters with PWM PI Control A Simulink model configurable to buck, boost and buck-boost DC-DC converters with PWM PI control Author: Yi Cao Cao, Yi

Yin,

Could you detail what improvement you are willing to see?

Regards,
Yi

01 Apr 2009 Who has the most children? What can we say about entries that have a lot of children? Author: Ned Gulley Cao, Yi

I give my first vote because I think it could be an intereting question to reveal partially how the contest was evolved. I do not have time to explore myself. But I believe in most times when people cloned a leading entry because they just wanted to make quick but small changes to the code, such as tweaking a parameter, applying a small acceleration trick, etc. For more cases, people may copy the leading code to local machine to have a run or a close study before make any changes to the code. To detect such clone will be more challenge. Also, it must have some correlations between the number of children and the time length of a leanding entry had.

25 Mar 2009 Eigenshuffle Consistently sorted eigenvalue and eigenvector sequences Author: John D'Errico Cao, Yi

John,

This is novel. A possible application is for MIMO frequency response. The following example needs control system toolbox:

sys = rss(10,10,10);
w=logspace(-1,1,200);
H=freqresp(sys,w);
[V,D]=eigenshuffle(H);
semilogx(w,D)

Another thing you may consider is to alter the distance measure to the true distance between scaled eighenvectors of two permutations, i.e. define

y_i(k) = lambda_i(k) v_i(k) = lambda_i(k) A(k), for i = 1, ..., n

to pair the ith of A(k) with the jth of A(k-1), the distance

d_ij = |y_i(k)|^2 + |y_j(k-1)|^2 - 2 |y_i(k)| |y_j(k-1)| cos < y_i(k), y_j(k-1)

where
cos < y_i(k), y_j(k-1) = v_i(k)^T v_j(k-1)

Regards,
Yi

25 Mar 2009 Bidirectional Branch and Bound Solvers for Worst Case Loss Minimization Two branch and bound solvers using worst case loss criterion to select controlled variables. Author: Yi Cao Cao, Yi

Dear Xu Wings,

Thank you for giving your feedback. However, the sentence "it doesnt work" doesnt help anyone although I dont mind you gave the rating 1. You need to explain what you have done and what error happened so that you got this conclusion.

Have you tested the examples provided in b3wc.m and pb3wc.m files? Make sure you test these examples by copying and pasting these examples to the command window. If it still does not work, please let me know what matlab version you are using and what error message you have obtained.

Regards,
Yi

18 Mar 2009 a better code for LDA based face recognition I have modified the former code so that it runs faster and can be run on normal PCs. Author: Shahab Anbarjafari Cao, Yi

I just tested this code with the face database provided in another submission. The code does not work at all. It reports several errors. For example:

??? Undefined function or variable 'x'.

Error in ==> ldaface at 53
AVERAGE=mean(x')';

I corrected this error by rename x to X. Then I got another error:

??? Undefined function or variable 'noc'.

Error in ==> ldaface at 54
Average_Matrix=(ones(noc*nots,1)*AVERAGE')';

I then follow the PCA code to define noc=40; Then, the program finishes with

LDA_Performance =

     0

Clearly, this code has not been tested before submission. I doubt how this code could be rated by someone as useful.

17 Feb 2009 Learning the Extended Kalman Filter An implementation of Extended Kalman Filter for nonlinear state estimation. Author: Yi Cao Cao, Yi

This error occurs because you run the example incorrectly so that ekf calls itself more than 500 times. To run the example, you need copy contents between "%{" and "%}" then past it on matlab command window to execute the example.

It also could be because your MATLAB version is too old to support block comments. If that is the case, you can comment out all line by adding "%" at the begining of each line between "%{" and "%}" to solve the problem.

09 Jan 2009 Bidirectional Branch and Bound Minimum Singular Value Solver (V2) A branch and bound solver to find the largest minimum singular values among all submatrices. Author: Yi Cao Cao, Yi

Dear Ihsan

The code is not suppose to work with such large size. The problem mainly is from the line where a 122500 * 122500 matrix is going to be created, which requires about 120 GB memory.

For such large matrix, I guess it must be sparse, isn't it? If so, I may be able to find a solution for it although the computation time could be very long.

21 Dec 2008 Hungarian Algorithm for Linear Assignment Problems (V2.1) An extremely fast implementation of the Hungarian algorithm on a native Matlab code. Author: Yi Cao Cao, Yi

Oh, yes. It was my mistake. A=-PROFIT gives the maximum of sum(PROFIT), but A=1./PROFIT results in the maximum of 1/sum(1./PROFIT), which is different from sum(PROFIT). Sorry for this.

21 Dec 2008 Kernel Smoothing Regression A non-parametrical regression (smoothing) tool using Gaussian kernel. Author: Yi Cao Cao, Yi

Thanks for the comment. However, the zero median either in X or in Y should not be consider because we deal with a regression problem here. The case mentioned just means that X or Y are constant, then the regrassion problem is not well-posed and the solution is meaningless anyway.

21 Dec 2008 Hungarian Algorithm for Linear Assignment Problems (V2.1) An extremely fast implementation of the Hungarian algorithm on a native Matlab code. Author: Yi Cao Cao, Yi

Yes, the code works with negative cost. You can either use negative cost or use reciprocal, i.e. COST = 1./PROFIT if you do not have zero profit elements.

16 Dec 2008 Hungarian Algorithm for Linear Assignment Problems (V2.1) An extremely fast implementation of the Hungarian algorithm on a native Matlab code. Author: Yi Cao Cao, Yi

Thanks Immanuel. The bug has been fixed.

 

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