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

Felipe

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Felipe View all
Updated File Comments Rating
02 Sep 2013 Functional Programming Constructs A set of files for treating many operations, like "if", "for", and even "()", as functions. Author: Tucker McClure

output.m could reuse wrap.m, it seems:
function varargout = output(f, out_indices)
varargout = wrap(f, out_indices);
end

21 Aug 2013 convert_humidity Convert humidity between different formats. Author: Felipe G. Nievinski

pls see <http://articles.chicagotribune.com/2011-07-20/news/ct-wea-0720-asktom-20110720_1_relative-humidity-condensation-nuclei-supersaturated-air>

11 Aug 2013 Functional Programming Constructs A set of files for treating many operations, like "if", "for", and even "()", as functions. Author: Tucker McClure

Thanks for taking the time to comment, Tucker.

09 Aug 2013 Functional Programming Constructs A set of files for treating many operations, like "if", "for", and even "()", as functions. Author: Tucker McClure

I'm wondering if it's possible to harmonize the behavior of the curly.m function with that of the built-in {} in this case:
x = {'a' 'b'}, {x{:}}, {curly(x,':')}
x =
'a' 'b'
ans =
'a' 'b'
ans =
'a'
I don't think it's a problem with curly.m, as these anonymous functions also exhibit the same discord:
curlycolon = @(x) x{:}; {curlycolon(x)}
ans =
'a'
curlycolon = @(x) subsref(x, substruct('{}',{':'})); {curlycolon(x)}
ans =
'a'
I seems to be a specificity of the colon operator; from doc colon: "The colon notation can be used with a cell array to produce a comma-separated list. ... The comma-separated list syntax is valid inside () for function calls, [] for concatenation and function return arguments, and inside {} to produce a cell array."

I came across this problem trying to define this function:
subvec2ind = @(siz, subvecnum) use(num2cell(subvecnum), @(subveccell) sub2ind(siz, subveccell{:}));
subvec2ind([5 5 5], [1 2 3])
sub2ind([5 5 5], 1, 2, 3)

04 Aug 2013 suplabel Places text as a title, xlabel, or ylabel on a group of subplots. Author: Ben Barrowes

if (nargout < 2), clear h; end
if (nargout < 1), clear ax; end

Contact us