- #1

- 170

- 1

but they're unlabelled (what's the use!) I'm sure there's a way to label my contours if I could plot them in the first place, but searches yield none. I understand that there's a functionpdeplot(p,e,t,'xydata',u,'mesh','off','contour','on',' ...)

pdecont(p,t,u)

but I can't think of how I can use it with given my data:clabel(X,Y,Z)

p(1,:) is the matrix containing the x-coordinates of u(:,1)

p(2,:) is the matrix containing the y-coordinates of u(:,1)

u(:,1) gives the solutions.

e.g. u(1) gives the solution at (p(1,1), p(2,2))

I tried the obvious,

which doesn't work as far as it goes because I realised X and Y refers to a grid rather than the coordinates of certain elements of Z. Similarly, Z are the values at the points in the grid, rather at only certain, irregularly spaced coordinates.clabel(p(1,:),p(2,:),u(:,1))

Any help is appreciated, thanks in advance!