Rank: 813 based on 185 downloads (last 30 days) and 3 files submitted
photo

Massimo Ciacci

E-mail

Personal Profile:
Professional Interests:
Signal processing

 

Watch this Author's files

 

Files Posted by Massimo View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
17 Oct 2014 Screenshot line_fewer_markers An alias of the LINE command, with additional control for markers, in number and location. Author: Massimo Ciacci potw, pick of the week, plot, annotation, line, graphics 160 12
  • 4.55556
4.6 | 10 ratings
02 Jun 2014 Screenshot NanSurf.zip Make surface plot when X,Y,Z contain NaNs, taking care of NaN-discontinuities Author: Massimo Ciacci plot, surface 14 0
22 May 2014 Screenshot killOrphanFiles.m Search all unreachable code files, from a Main Entry file, and delete them. Author: Massimo Ciacci files, coding 11 3
Comments and Ratings by Massimo View all
Updated File Comments Rating
17 Oct 2014 line_fewer_markers An alias of the LINE command, with additional control for markers, in number and location. Author: Massimo Ciacci

@Jeremy

Yes, there is a workaround to use it in plotyy, that does not require changing line_fewer_markers, just function pointers, as follows:

figure(10); hold on; set(gca,'FontSize',16); set(gca,'FontName','Times'); set(gcf,'Color',[1,1,1]);
x=(1:10);
y1=x.^2;y2=x.^3;

f1 = @(x,y)line_fewer_markers(x,y,5,'ro','LegendLine','off');
f2 = @(x,y)line_fewer_markers(x,y,8,'bs','Spacing','curve','markerfacecolor','b');
[u,lh1,lh2] = plotyy(x,y1,x,y2,f1,f2)

legend('curve 1','curve 2')

22 May 2014 killOrphanFiles.m Search all unreachable code files, from a Main Entry file, and delete them. Author: Massimo Ciacci

After looking around, i still think that a potential call considered to be a call is not a problem but rather a feature, given the task of this function: clean up unnecessary files, before releasing a trunk. Better to be safe and delete one file less. I found myself using this quite often since its submission, and i chose not to change it. After all there are true and good code dependency tools out there; for those who need that they are here in the wrong place.

19 May 2014 killOrphanFiles.m Search all unreachable code files, from a Main Entry file, and delete them. Author: Massimo Ciacci

Thanks Jan for your comment.

I must add that i did it intentionally to treat names as function calls even within strings, since often i have commented code which i may want to uncomment, and so that for me is a dependency. And despite this it still reduced one of my trunks from 1500 m files to less than 500, but yes it was not well organized to say the least:).

On the other hand it should be definitely chosen by the user whether commented calls should be ignored. I will look into this as soon as i can. Thanks

12 Feb 2014 Image overlay Overlay a binary mask onto an image using a specified color Author: Steve Eddins

22 Jan 2014 FFT-based convolution Discrete convolution using FFT method Author: Bruno Luong

Excellent job! Nicely documented and elegant code and to the point!

Works much faster than conv2 for full case, and also faster than conv2 with option 'valid', which misteriously makes conv2 35x faster with a 500x500 matrix with a 400x400 one (makes me suspect that conv2 + 'valid' does not just extract the mid part but saves computations).

Comments and Ratings on Massimo's Files View all
Updated File Comment by Comments Rating
21 Oct 2014 line_fewer_markers An alias of the LINE command, with additional control for markers, in number and location. Author: Massimo Ciacci Jérémy

Great !
This makes perfectly what I needed.
Thank you for your answer so fast!

( N.B: For Matlab R2009B, the function iscolumn(x) isn't supported, so I simply replaced it with (size(x,2)==1) )

17 Oct 2014 line_fewer_markers An alias of the LINE command, with additional control for markers, in number and location. Author: Massimo Ciacci Ciacci, Massimo

@Jeremy

Yes, there is a workaround to use it in plotyy, that does not require changing line_fewer_markers, just function pointers, as follows:

figure(10); hold on; set(gca,'FontSize',16); set(gca,'FontName','Times'); set(gcf,'Color',[1,1,1]);
x=(1:10);
y1=x.^2;y2=x.^3;

f1 = @(x,y)line_fewer_markers(x,y,5,'ro','LegendLine','off');
f2 = @(x,y)line_fewer_markers(x,y,8,'bs','Spacing','curve','markerfacecolor','b');
[u,lh1,lh2] = plotyy(x,y1,x,y2,f1,f2)

legend('curve 1','curve 2')

16 Oct 2014 line_fewer_markers An alias of the LINE command, with additional control for markers, in number and location. Author: Massimo Ciacci Jérémy

Hello !
Thank you for this usefull function !

Is there a way to use it on a two Y-axis plot, with plotyy ?

25 Sep 2014 line_fewer_markers An alias of the LINE command, with additional control for markers, in number and location. Author: Massimo Ciacci Marie

Nice function! I was desperate with my two lines and non-corresponding legends... Great job !

Is that possible to get a 3D version, like plot3 ?

25 Sep 2014 line_fewer_markers An alias of the LINE command, with additional control for markers, in number and location. Author: Massimo Ciacci Marie

Contact us