Rank: 311705 based on 0 downloads (last 30 days) and 0 file submitted
photo

Danilo Zanatta

E-mail
Company/University
aizo ag
Lat/Long
47.40129, 8.443095

Personal Profile:

 

Watch this Author's files

 

Comments and Ratings by Danilo Zanatta 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)

Contact us