About 51 results
Open links in new tab
  1. matlab - Understanding matlabFunction - Stack Overflow

    Mar 10, 2014 · I have been using matlabFunction rather extensively in my computational physics class, and I was hoping someone could help me understand what exactly is going on with this command (is …

  2. How do I make a function from a symbolic expression in MATLAB?

    Oct 24, 2016 · If you have version 4.9 (R2007b+) or later of the Symbolic Toolbox you can convert a symbolic expression to an anonymous function or a function M-file using the matlabFunction function.

  3. Matlab: How to specify input in matlabFunction? - Stack Overflow

    Feb 15, 2019 · matlabFunction() is a function that can convert symbolic to anonymous function. But how to specify what input arguments to be appeared on the anonymous function?

  4. How to convert symbolic expression to function handle for …

    Apr 8, 2018 · You were on the right path when choosing to employ matlabfunction. However, you probably missed out one of its optional parameters, signally Vars; Order of input variables or vectors …

  5. Evaluate a constant expression in matlab - Stack Overflow

    Apr 26, 2021 · In the case where matlabFunction () is not a constant, it will return a vector and multiplying that vector by the 1's vector will yield the same vector and in the case where it is a …

  6. How do I differentiate an inline function in matlab

    Oct 7, 2016 · suppose I write the following in matlab c='x^2-6'; f=inline(c); Then f will be an inline function. I can evaluate f at different values by entering f(2) f(5) etc. However, when I try diff(f) it

  7. Octave: Unable to call a function from another .m file

    Oct 14, 2019 · Is TrapM on the search path? If you don't need to call TrapM from other functions, you can put it in the RomScript.m file, after the main function. It then becomes a private sub-function.

  8. matlab symfun vs anonymous function - Stack Overflow

    May 23, 2017 · You should have a look at the matlabFunction function of the Symbolic Math Toolbox, which performs exactly this and works quite well for reasonably scaled functions (but here's a …

  9. differentiate a function in matlab - Stack Overflow

    Dec 23, 2016 · 0 You need the matlabfunction function. matlabFunction Generate a MATLAB file or anonymous function from a sym

  10. Matlab: error in "horzcat" when using matlabFunction to generate file ...

    Nov 5, 2021 · Regarding your error, I would suggest to turn on the debugger and try to figure out where inside the matlabFunction function this is happening. This should give you some insight into what the …