[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to implement a summation function for numerical solving?
From: |
Kimmo Luoma |
Subject: |
Re: How to implement a summation function for numerical solving? |
Date: |
Tue, 14 Jun 2011 13:16:57 +0300 |
Hello,
I have not read your complete code, but
if you define some variable global then you could do
something like
global x;
function r=fcn(y)
global x;
...Do something
endfunction
This way x is also defined inside function.
Kimmo
On Tue, 2011-06-14 at 03:02 -0700, andrewcd wrote:
> One more question:
>
> You have probably noticed that my code defines variables twice -- once
> inside and once outside of the function. This is a pain, obviously. But
> variables defined outside of the function don't show up inside the function,
> and vice versa. There must be a way around this. Any hints? Thanks.
>
> --
> View this message in context:
> http://octave.1599824.n4.nabble.com/How-to-implement-a-summation-function-for-numerical-solving-tp3593289p3596124.html
> Sent from the Octave - General mailing list archive at Nabble.com.
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://mailman.cae.wisc.edu/listinfo/help-octave
- How to implement a summation function for numerical solving?, andrewcd, 2011/06/13
- Re: How to implement a summation function for numerical solving?, Liam Groener, 2011/06/13
- Re: How to implement a summation function for numerical solving?, andrewcd, 2011/06/13
- Re: How to implement a summation function for numerical solving?, andrewcd, 2011/06/14
- Re: How to implement a summation function for numerical solving?,
Kimmo Luoma <=
- Re: How to implement a summation function for numerical solving?, John W. Eaton, 2011/06/14
- Re: How to implement a summation function for numerical solving?, andrewcd, 2011/06/15
- Re: How to implement a summation function for numerical solving?, Liam Groener, 2011/06/16
- Re: How to implement a summation function for numerical solving?, Liam Groener, 2011/06/16
- Re: How to implement a summation function for numerical solving?, andrewcd, 2011/06/16