To evaluate a matlab generated function, you need to follow these steps:
Here's an example:
Suppose you have a matlab function myfunction
generated in the file myfunction.m
.
main.m54 chars4 lines
To evaluate this function for the input value of x = 4
, you can do the following:
myfunction.m
file in matlab.main.m44 chars7 lines
The output will be 22
.
gistlibby LogSnag