Feeds
已回答
cellfun for objects
This is what I finally did, based on Daniel's advice. script = {str2func('@(a,b,c,d)(a+b)'); str2func('@(a,b,c,d)(c-d)')}; ...
cellfun for objects
This is what I finally did, based on Daniel's advice. script = {str2func('@(a,b,c,d)(a+b)'); str2func('@(a,b,c,d)(c-d)')}; ...
13 years 前 | 0
已回答
cellfun for objects
I thought it might be instructive to see what the m-file would look like, the implementation i had earlier and that Sean is reco...
cellfun for objects
I thought it might be instructive to see what the m-file would look like, the implementation i had earlier and that Sean is reco...
13 years 前 | 0
已回答
cellfun for objects
Hi Daniel, maybe you are onto something here. If I follow that route, I will have something like script={'@(a,b,c,d)(a+b)';...
cellfun for objects
Hi Daniel, maybe you are onto something here. If I follow that route, I will have something like script={'@(a,b,c,d)(a+b)';...
13 years 前 | 0
已回答
cellfun for objects
Summarizing the steps: lhs=(cellfun(@eval,script,'UniformOutput',false)); lhs=[lhs{:}]; lhs=reshape(lhs,size(script))...
cellfun for objects
Summarizing the steps: lhs=(cellfun(@eval,script,'UniformOutput',false)); lhs=[lhs{:}]; lhs=reshape(lhs,size(script))...
13 years 前 | 1
提问
cellfun for objects
Hi, I would like to run the following line of code lhs=(cellfun(@eval,script)); script is a cell array and the content ...
13 years 前 | 10 个回答 | 1
10
个回答已回答
What is your unusual use of MATLAB?
I wrote a utility function taking as inputs the characteristics of a house (such as the location, neighborhood etc) and returnin...
What is your unusual use of MATLAB?
I wrote a utility function taking as inputs the characteristics of a house (such as the location, neighborhood etc) and returnin...
13 years 前 | 5
提问
transforming an m-file to an anonymous or inline function
Hi, I have the following function function out=myfun(x,y,z) aa=h1(x,y,z); dd=h2(x,y,z); out=[x(1)+y(2) x(3)+z...
13 years 前 | 2 个回答 | 0
2
个回答提问
expression substitution
Hi, I would like to use regexprep to substitute a simple expression for another in a text. As an example, I have the follow...
13 years 前 | 2 个回答 | 0
2
个回答提问
Bug in symbolic toolbox?
Hi all, I am experiencing a strange behavior of the sym function. The result of sym('I') is 'I'. While the result of sym('A+I')...
13 years 前 | 2 个回答 | 0