Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Insights 5 Common MATLAB Error Messages and How to Fix Them - Comments

  1. May 19, 2015 #1


    User Avatar
    Gold Member

  2. jcsd
  3. May 19, 2015 #2
    Great resource! Members feel free to add your own error messages you come across often!
  4. May 26, 2015 #3
    FUN must be a function, a valid string expression, or an inline function object.
  5. May 26, 2015 #4


    User Avatar
    Gold Member

    Good one! This message is returned by some functions that accept a function handle as an input if you don't specify it correctly.

    (You might recall that function handles are the current standard, and they replaced inline function objects several years ago)

    Here is an example of a way this message can arise using FMINSEARCH and how to fix it:

Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted

Similar Threads - Common MATLAB Error Date
Matlab Coding angular spectrum of waves in a fluid Yesterday at 7:30 AM
Mathematica Errors when plotting but not when evaluating Mar 13, 2018
How to program this in Matlab Feb 28, 2018
Matlab Making a short test for self-adjointness Feb 23, 2018