Community Profile

photo

Junior


Norges Bank

Last seen: 8 days ago Active since 2011

Followers: 0   Following: 0

Message

Statistics

  • Thankful Level 1
  • First Answer

View badges

Feeds

View by

Answered
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)')}; ...

12 years ago | 0

Answered
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...

12 years ago | 0

Answered
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)';...

12 years ago | 0

Answered
cellfun for objects
Summarizing the steps: lhs=(cellfun(@eval,script,'UniformOutput',false)); lhs=[lhs{:}]; lhs=reshape(lhs,size(script))...

12 years ago | 0

Question


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 ...

12 years ago | 10 answers | 1

10

answers

Answered
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...

12 years ago | 5

Question


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...

12 years ago | 2 answers | 0

2

answers

Question


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...

12 years ago | 2 answers | 0

2

answers

Question


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')...

12 years ago | 2 answers | 0

2

answers