Date: Feb 6, 2013 2:35 AM
Author: Bruno Luong
Subject: Re: Warning: Matrix is singular to working precision.
"nelimw" wrote in message <firstname.lastname@example.org>...
> 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 "/".