Prev: Simulink: Prevent block resizing/moving (callback recursions)
Next: Matlab recognition of functions
From: Aman on 8 Jul 2010 08:03 ?? Undefined function or variable 'Avg_Gk'. Error in ==> myfunctions at 9 avg(i)=Avg_Gk; please explain in detail.
From: Faraz Afzal on 8 Jul 2010 08:19 "Aman " <am.amangupta(a)gmail.com> wrote in message <i14epp$oiq$1(a)fred.mathworks.com>... > ?? Undefined function or variable 'Avg_Gk'. > > Error in ==> myfunctions at 9 > avg(i)=Avg_Gk; > > please explain in detail. I would rather suggest you to PLEASE EXPLAIN IN DETAIL.. TO me it seems and is very obvious that you are assigning value of Avg_Gk to avg(i) in a loop and you are never computing Avg_Gk.. A glimpse into your code would be handy. Regards, Muhammad Faraz
From: dpb on 8 Jul 2010 08:35 Aman wrote: > ?? Undefined function or variable 'Avg_Gk'. > > Error in ==> myfunctions at 9 > avg(i)=Avg_Gk; > > please explain in detail. You don't have any such function nor a variable of that name as the error message says, at least _not_in_the_scope_of_ myfunctions() It could be a typo/spelling error, maybe it exists in the top level workspace but you didn't pass it, maybe... What you intend/intended is not possible to see w/o more detail... --
|
Pages: 1 Prev: Simulink: Prevent block resizing/moving (callback recursions) Next: Matlab recognition of functions |