Prev: Volume of Voronoi cells
Next: Plot (real time)
From: IAN SAl on 19 Apr 2010 14:12 Hi everyone When i try to pass parameters from file A to file B (function) to calculate them They are received compeletly different ! in B for example if i define n in file A n=5 and disply it in file B , it shows n=0.08 and so on. Can anyone explain why? the code has not compeleted yet to be inserted here and sometimes it tells me that n is undefined although i defined it in A and passing it to B Regards IAN
From: James Tursa on 19 Apr 2010 14:18 "IAN SAl" <ib52(a)hotmail.com> wrote in message <hqi6dk$bg8$1(a)fred.mathworks.com>... > Hi everyone > > When i try to pass parameters from file A to file B (function) to calculate them > They are received compeletly different ! in B > > for example > > if i define n in file A > > n=5 > > and disply it in file B , it shows > n=0.08 > > and so on. > > Can anyone explain why? > > the code has not compeleted yet to be inserted here > > and sometimes it tells me that n is undefined although i defined it in A and passing it to B You need to post your code to show us what, exactly, you are doing. No one is going to be able to help you based on what you have given us so far. James Tursa
From: Walter Roberson on 19 Apr 2010 14:32 IAN SAl wrote: > When i try to pass parameters from file A to file B (function) to > calculate them > They are received compeletly different ! in B > > for example > > if i define n in file A > > n=5 > > and disply it in file B , it shows n=0.08 > > and so on. > > Can anyone explain why? It sounds very much like you are either not passing the variables through the parameter list, or else that you have mis-matched the dummy parameters in B compared to what you are actually passing out of A.
From: IAN SAl on 19 Apr 2010 16:37 "James Tursa" <aclassyguy_with_a_k_not_a_c(a)hotmail.com> wrote in message <hqi6os$hn0$1(a)fred.mathworks.com>... > You need to post your code to show us what, exactly, you are doing. No one is going to be able to help you based on what you have given us so far. > James Tursa Thanks James I think it is 2 long but i will post it soon Thanks again and again IAN
From: IAN SAl on 19 Apr 2010 16:50
Walter Roberson <roberson(a)hushmail.com> wrote in message > It sounds very much like you are either not passing the variables through the > parameter list, or else that you have mis-matched the dummy parameters in B > compared to what you are actually passing out of A. Hi Walter Thanks for looking into my problem They are passed through the parameter lists It could be if it is just one parameter but most of them ,if not allm have the same problem Thanks alot IAN |