Func2func v1.0 (jul 2009) in matlab

The following Matlab project contains the source code and Matlab examples used for func2func v1.0 (jul 2009). Since MATLAB v7 we can use the new anonymous functionality to create small functions like: >> A = 7; >> F = @(x) A*x; to get a simple multiplication by 7: >> F(2) ans = 14 But, if you change the A value, it is not updated on the F workspace: >> A = 8; >> F(2) ans = 14 This is sometimes undesirable, and we guess that by using >> G = str2func(func2str(F)); we fix this problem but then we get a warning >> G(2) ??? Undefined function or method '@(x)A*x' for input arguments of type 'double'.

The source code and files included in this project are listed in the project files section, please make sure whether the listed source code meet your needs there.

Project Files: 

File NameSize
func2func.m 10362
license.txt 1329

SocialTags: