Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Using trapz in a cell variable
Replies: 1   Last Post: Apr 30, 2013 9:55 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Amiri

Posts: 1
Registered: 4/30/13
Using trapz in a cell variable
Posted: Apr 30, 2013 6:00 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi everyone,

I have a cell variable like aa=cell(10,1) and each cell is a function handle like
aa{1}=@(t) (2*t+3)
and also I have X which is a 10by1 matrice.
Now I want to integrate aa over X as a function handle like
bb= @(t) trpaz(X,aa{:}(t))
but finally when for exampple I want to have bb(1) (I mean bb at time t=1) this error comes up: ''Bad cell reference operation.''

could anyone help me on this issue?
Bests, Amir



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.