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)')}; ...
14년 초과 전 | 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...
14년 초과 전 | 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)';...
14년 초과 전 | 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))...
14년 초과 전 | 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 ...
14년 초과 전 | 답변 수: 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...
14년 초과 전 | 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...
14년 초과 전 | 답변 수: 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...
14년 초과 전 | 답변 수: 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')...
14년 초과 전 | 답변 수: 2 | 0

