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: Calculation of two-variable function
Replies: 1   Last Post: Aug 16, 1996 11:30 AM

Advanced Search

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

Posts: 2
Registered: 12/11/04
Calculation of two-variable function
Posted: Aug 16, 1996 9:41 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I have a function which has two variables as follows:
f(t)=exp(-k1*t)+exp(-k2*t)+...+exp(-kn_1*t)+exp(-kn*t).
I want to find the values at different time t, i.e., t1,t2,...tm.
I know that I can use a for loop
for i=t1:dt:tm,
f(i)=sum(exp(-k*t))
end
where k=[k1,k2,...,kn]. My question is: can I use a neat matrix formula to
do the same calculation since matlab is matrix oriented.
Liyong Chen





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.