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

Matlab plot discussion- reg

  1. Jul 11, 2011 #1
    Dear friends
    I M. Saravanan, currently working in matlab attempting to plot some solutions of the differential equations.
    When plotting I received a command "Warning: Matrix is singular to working precision" for the solution step in the M files. Since as a beginner this statement make me to proceed further.
    The solution involves a lot of parameter so that by tuning the parameter I could get the plot.

    Also another command which I received is "Nan".

    I could be benefit enough if someone could be help me in this regard.
     
  2. jcsd
  3. Jul 11, 2011 #2

    MATLABdude

    User Avatar
    Science Advisor

    The warning tells you that you probably divided by zero somewhere (or did another similar operation). The NaN (not a number, and not the delicious naan bread) you see in your results is confirmation of this. I'd suggest using the debugging features to set some breakpoints, or step through your m-file and debug your code:
    http://www.mathworks.com/help/techdoc/matlab_env/brqxeeu-175.html [Broken]
    http://en.wikibooks.org/wiki/MATLAB_Programming/Debugging_M_Files
     
    Last edited by a moderator: May 5, 2017
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Matlab plot discussion- reg
  1. MATLAB plots (Replies: 1)

  2. Matlab Plot (Replies: 2)

  3. Plotting in MATLAB (Replies: 8)

  4. Matlab discussion (Replies: 2)

  5. Plotting with MATLAB (Replies: 1)

Loading...