Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Warning: Matrix is singular to working precision.
Replies: 1   Last Post: Feb 6, 2013 2:35 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View  
Bruno Luong

Posts: 8,737
Registered: 7/26/08
Re: Warning: Matrix is singular to working precision.
Posted: Feb 6, 2013 2:35 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"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



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.