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


    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]
    Last edited by a moderator: May 5, 2017
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Similar Threads - Matlab plot discussion Date
Matlab Plotting Coordinate Transformations in Matlab Feb 12, 2018
Matlab Plotting animations (time-evolution) Jan 17, 2018
Does anyone had this plotting problem with MATLAB? Dec 23, 2017
Matlab Matlab's plot command Nov 30, 2017
Matlab Matlab -- how to make a smooth contour plot? Jun 28, 2017