Rank: 27365 based on 0 downloads (last 30 days) and 0 files submitted
photo

Danilo Zanatta

E-mail
Lat/Long
47.17457962036133, 9.513548851013184

Personal Profile:
Professional Interests:
signal processing, wireless, smart antennas, audio

 

Watch this Author's files

 

Comments and Ratings by Danilo View all
Updated File Comments Rating
29 Aug 2011 cprintf - display formatted colored text in the Command Window Displays sprintf-formatted strings in the Command Window using the specified color/underline style Author: Yair Altman

@Yair - I've found one bug:

Since I use black background and gray text for the command window, cprintf('text', 'Hello World!\n') was showing the string in black, i.e. invisible with my configurations.

By watching around a little bit, I figured out that the text color is "saved" in the 'ColorsText' preference, so I changed the code around line 242 to:

      % Regular text
      elseif matches == 1
          style = 'ColorsText';

Noew, when I use 'text' as style, I get *exactly* the color I have set in the preferences.

05 Jul 2011 statusbar set/get status bar(s) for GUI figures & Matlab desktop Author: Yair Altman

Matlab 7.10.0 (R2010a) and later versions give me the following warning:

Warning: figure JavaFrame property will be obsoleted in a future release. For more information see
the JavaFrame resource on the MathWorks Web site.
> In statusbar>setFigureStatus at 202
  In statusbar at 148

Any chance this can be "fixed"?

Thx!

29 Mar 2011 statusbar set/get status bar(s) for GUI figures & Matlab desktop Author: Yair Altman

First, thanks for the nice tool!!!!

Just to report a warning in R2010b:

Warning: Possible deprecated use of set('Visible','off') on Java boolean property:
use jobj.setVisible(false) instead.

Fixed by changing line 229 of statusbar.m to:

jProgressBar.setVisible(false);

24 Sep 2010 PLOTA PLOTA plots each new plot using other color. Author: Alex Bar-Guy

Sorry, I made a mistake on my previous comment (is it possible to edit/delete it)... The function should be:

ca = get(get(0,'CurrentFigure'),'CurrentAxes');
if isempty( ca )
     ordi0 = 0;
else
     ordi0 = length(get(ca,'Children'));
     CurrentHold = get( gca, 'NextPlot');
     set( gca, 'NextPlot', 'add' );
end
hp = plot( varargin{:} );
ColOrd = get(gca, 'ColorOrder');
children = get(gca,'Children');
ordi = length(children);
ord = mod((ordi0+1:ordi)-1, size(ColOrd,1));
cc = 0;
for ii = (ordi - ordi0): -1 : 1
     cc = cc + 1;
     set(children(ii), 'Color', ColOrd(((ordi0+cc)<=size(ColOrd,1))*(ordi0+cc) + ((ordi0+cc)>size(ColOrd,1))*(ord(cc)+1), :));
end
if ordi0 == 0,
    set( gca, 'NextPlot', 'replace');
else
    set( gca, 'NextPlot', CurrentHold);
end

22 Jul 2010 PLOTA PLOTA plots each new plot using other color. Author: Alex Bar-Guy

Thank you - very helpful tool !!!!

Just a comment: sine I often use handles to plots, I've change the function definition to:

function hp = plota(varargin)

Top Tags Applied by Danilo
order, plot
Files Tagged by Danilo
Updated   File Tags Downloads
(last 30 days)
Comments Rating
24 Jan 2008 Screenshot AddReorderButtons Add toolbar buttons to move plot objects forward and backward within axes. Author: Geoffrey Adams order, plot, annotation, customization, reorder, toolbar 2 8
  • 4.66667
4.7 | 3 ratings

Contact us at files@mathworks.com