Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
|
|
Re: Warning: Matrix is singular to working precision.
Posted:
Feb 6, 2013 2:35 AM
|
|
"nelimw" wrote in message <kesddc$p0q$1@newscl01ah.mathworks.com>... > I am trying to write a code to create a 3-D plot of the absolute maximum non-dimensional shear tress. The code I have is provided below. However, each time I run this code I get this error: Warning: Matrix is singular to working precision. My questions are > > 1) What does that error mean > 2) How can I fix it > > Thank you for your help in advance > > close all; > clear all; > > [x,y] = meshgrid(-3:.1:3,-3:.1:3); %make a grid of points > > sigmaX = (-2/pi).*(x.^3/(x.^2+y.^2).^2); > sigmaY = (-2/pi).*((x.*y.^2)/(x.^2+y.^2).^2); > tauXY = (-2/pi).*((y.*x.^2)/(x.^2+y.^2).^2);
I bet you want "./" operator and not "/".
Bruno
|
|
|
|