Contour plot

10 views (last 30 days)
Green Sal
Green Sal on 20 Oct 2011
Hello.
I have the functions of normal strain,x = 3 + 12*x^2+6*y^2 normal strain,y= x shear strain,xy= 12*x*y+y-14*x
and i would like to plot the contours of the three equations where x and y is between -1 and 1. So from the graph i can tell where is the max of each.
Please Help.
Thank you.

Accepted Answer

the cyclist
the cyclist on 20 Oct 2011
Does this help?
x = -1:0.01:1;
y = -1:0.01:1;
[xx,yy] = meshgrid(x,y);
nsx = 3 + 12*xx.^2+6*yy.^2;
nsy = xx;
ss = 12*xx.*yy + yy - 14*xx;
figure
subplot(3,1,1),contour(xx,yy,nsx)
subplot(3,1,2),contour(xx,yy,nsy)
subplot(3,1,3),contour(xx,yy,ss)
  1 Comment
Green Sal
Green Sal on 20 Oct 2011
Thank you very much :)

Sign in to comment.

More Answers (0)

Categories

Find more on Contour Plots in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!