Rank: 859 based on 174 downloads (last 30 days) and 10 files submitted
photo

Marco Cococcioni

E-mail
Company/University
University of Pisa
Lat/Long
43.721, 10.3899

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Marco View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
26 Mar 2014 Screenshot TRIRND Generates n pseudorandom numbers with triangular density. Author: Marco Cococcioni triangular pseudorand... 7 0
09 Jun 2009 Screenshot Mackey-Glass time series generator This function generates a Mackey-Glass time series using the 4-th order Runge-Kutta method. Author: Marco Cococcioni chaotic time series, demo, mackyglass 40 0
20 May 2009 Screenshot ARGMAX/ARGMIN This set of functions efficiently compute argument of maximum/minimum for vectors and matrices. Author: Marco Cococcioni argument of maximum, argument of minimum, matematics, matrix operators 42 0
  • 1.0
1.0 | 1 rating
29 Dec 2008 Screenshot LOGREG This script shows how to perform an univariate logistic regression in Matlab. Author: Marco Cococcioni curve fitting, regression, logistic curve, logistic regression, demo 14 1
17 Jul 2008 Screenshot NUM2LAB Converts a numeric vector into a cell vector of strings. Author: Marco Cococcioni conversion, labels, generation, num2lab, numeric, vector 9 2
Comments and Ratings by Marco View all
Updated File Comments Rating
09 Dec 2012 Fast Inpolygon in MEX Fast inpolygon function implemented in MEX. So far one of the fastest. Author: Tolga Birdal

I have found many cases where this function fails. There is a bug, somewhere in the code.
Could the author fix it? Otherwise unreliable.

Here is a counterexample:

X = 49936;
Y =-78883;
XV = [49370 54355 54355 49370];
YV = [-8406 -8406 -77126 -77126];
inpolygon(X,Y,XV',YV')

ans =

0

>> inpolygon_fast(X,Y,XV',YV')

ans =

1

The correct answer is that of inpolygon,
since the point is located outside the rectangle.
Use the following code to check it out yourself:

plot(XV,YV,'-b');
hold
plot(X,Y,'.r')

24 Sep 2009 CELL2STR CELL2STR converts a cell array of strings into a character array. Author: Daniel Claxton

Although Jos and us are right, I think this function deserves to stay here, because its name is more intuitive that the built-in 'char', which is not expected to do the conversion. The high number of downloads of this function seems to confirm my opinion. Best regards, MC

Comments and Ratings on Marco's Files View all
Updated File Comment by Comments Rating
25 Sep 2013 ARGMAX/ARGMIN This set of functions efficiently compute argument of maximum/minimum for vectors and matrices. Author: Marco Cococcioni Al-Zubaidi, Tareq

13 Feb 2012 LOGREG This script shows how to perform an univariate logistic regression in Matlab. Author: Marco Cococcioni Dave

Hi, thank you for this code. I have similar data to fit except I need to do some extrapolation. For example, if you consider the example you provide in the html file without data below, say 50 on the x-axis, how would you extrapolate the model to 0 in order to find the fit parameter 'y' ?
thank you

29 Jan 2011 OLS This functions implements the algorithm of Orthogonal Least Squares. It can be used to rank regresso Author: Marco Cococcioni Steven

15 Mar 2010 OLS This functions implements the algorithm of Orthogonal Least Squares. It can be used to rank regresso Author: Marco Cococcioni Oscar

I would tend to agree with Mr. Shvorob and Mr D'Errico, this is not what I understand orthogonal least-squares. Also, although the code is not as poor as previously seen entries, the general structure is confusing and unnecessarily bloated. In particular, I find the choice to include a demo capability into the function itself, rather than including it as a seperate file, questionable to say the least.

None the less, I'm sure that with a good cleanup, this code will find its uses in some scenarios, if not for the functionality it offers then for its thorough discussion of the theory (although it should probably be moved out of the file to a seperate document).

13 Aug 2009 OLS This functions implements the algorithm of Orthogonal Least Squares. It can be used to rank regresso Author: Marco Cococcioni Virgulti, Fabio

Contact us