Difficulties translating Matlab to C -


I have some matlab functions that I have to translate to C but I do not understand the syntax or the behavior of making . / P>

I have this call and the following implementation:

  {... vSolution, sReturnVal] = Funka 1 (10, @ (x) funk2 (x, hour_of_de_de) );}} Function [SolutionVector, ReturnValue] = Func1 (IterationsTermination, FuncToUse) function [ReturnValue] = Func2 (TestedSolution, shour_of_day)   

I thought '@ (X) 'There was an ordinary function to define an unknown function (a simple pointer to the function), but here the parameter is used with a designated function, and X The value defines the parameters in the list.

How can I understand this and translate it into C?

This is an anonymous function defined but that anonymous function has to call Func2 . Anonymous function is equivalent to:

  function y = myFunc (x) y = throw 2 (x, hour_of_de_de);    

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -