Rank: 3628 based on 26 downloads (last 30 days) and 3 files submitted
photo

Jon Danisch

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Jon View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
12 Feb 2011 Screenshot Command window file explorer Embedded html links to open, run, or edit files from the command window. With bookmarks! Author: Jon Danisch cd, ls, dir, directory, html, command window 9 0
31 Jan 2011 Pointers and subscript pointers Pointers implemented in Matlab Author: Jon Danisch pointer, pointers, handle, builtin, class 6 0
26 Jan 2011 Overload Char Changes default behavior of [], +, - for char types. Author: Jon Danisch overloading, char, horzcat, plus, minus, builtin 11 5
Comments and Ratings by Jon View all
Updated File Comments Rating
28 Jan 2011 Overload Char Changes default behavior of [], +, - for char types. Author: Jon Danisch

Nice catch. See the link below for a similar but "safer" implementation by another author.
http://www.mathworks.com/matlabcentral/fileexchange/28928-class-for-character-array

27 Jan 2011 Overload Char Changes default behavior of [], +, - for char types. Author: Jon Danisch

This is the reason why I included an easy way to toggle it on/off. It should only break functions that use non-intuitive expressions such as adding a double to a string to return a double.

Comments and Ratings on Jon's Files View all
Updated File Comment by Comments Rating
28 Jan 2011 Overload Char Changes default behavior of [], +, - for char types. Author: Jon Danisch Danisch, Jon

Nice catch. See the link below for a similar but "safer" implementation by another author.
http://www.mathworks.com/matlabcentral/fileexchange/28928-class-for-character-array

28 Jan 2011 Overload Char Changes default behavior of [], +, - for char types. Author: Jon Danisch Simon, Jan

And CAMERATOOLBAR, CAMERAMENU, XLSWRITE.

28 Jan 2011 Overload Char Changes default behavior of [], +, - for char types. Author: Jon Danisch Simon, Jan

It influences e.g. SAVEPATH and REPORTERRORLOGS, WORKSPACEFUNC, NOTEBOOK, which use ['text', 10] to insert a line break. Of course ['text', char(10)] would be nicer and I assume an enhancement request to TMW might be valuable. But until TMW has not fixed the toolbox functions, I would not dare to overload [] and + for CHARs.

27 Jan 2011 Overload Char Changes default behavior of [], +, - for char types. Author: Jon Danisch Danisch, Jon

This is the reason why I included an easy way to toggle it on/off. It should only break functions that use non-intuitive expressions such as adding a double to a string to return a double.

27 Jan 2011 Overload Char Changes default behavior of [], +, - for char types. Author: Jon Danisch Tursa, James

I haven't checked your code yet, but be advised that some of the MATLAB built-in functions depend on certain char behavior with respect to + and - operations. So overloading these operations for char may break these built-in functions.

Contact us