MATLAB: Embedded function (Simulink) logistic map Hi everybody, I wrote a Logistic map function in Matlab. How can I call this function from Simulink by use embedded function. Best Answer Drag and drop the "Embedded MATLAB Function" block from library "Simulink","User-Defined Functions" to your model and copy then paste your M-Function.Or drag and drop the "Fcn" block from the same library and put in your M-Function name.All assume that you have or figure out the input/output argument syntax. Related SolutionsMATLAB: Use S-function You can use 'Embedded MATLAB Function' block in your model for embedding MATLAB code with simulink. This block is available atSimulink Library browser > User defined functions > 'Embedded MATLAB Function'For help typedoc 'Embedded MATLAB Function'on command window. MATLAB: Get selected objects (simulink) Hi,gca won't return the selected object, but the current axe in a figure (get current axe)I guess you meant gcb (get current block).gcb only return one block.if you want multiple blocks :MyBlocks = find_system(gcs,'Selected','on') Related QuestionHow to run embedded Matlab function in Simulink periodicallyTiming belt pulley (Simulink)
Best Answer