iniline unction in matlab

5 visualizaciones (últimos 30 días)
Amirah Sofia
Amirah Sofia el 13 de Mayo de 2020
Editada: Ameer Hamza el 13 de Mayo de 2020
does inline can be used in R2020a? if not, what is the substitution for this function?
  1 comentario
Rik
Rik el 13 de Mayo de 2020
Inline functions should be replaced by str2func calls, or by anonymous functions. What is your use case for inline functions?

Iniciar sesión para comentar.

Respuestas (1)

Ameer Hamza
Ameer Hamza el 13 de Mayo de 2020
Editada: Ameer Hamza el 13 de Mayo de 2020
Inline still works in R2020a, however, it is not recommended anymore. If you are trying to construct functions from strings, then see str2func(): https://www.mathworks.com/help/releases/R2020a/matlab/ref/str2func.html

Categorías

Más información sobre Function Creation en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by