PDETOOL Matlab - Plotting a linear element?

MATLAB-specific help discussions.

PDETOOL Matlab - Plotting a linear element?

Postby BlueJay » Thu Nov 10, 2011 6:19 pm

Hi,

I've written a script that creates a few rectangles and gives the surface plot in the PDE toolbox.

What I would like to do is to also plot the values for a linear element in the surface plot i.e. for a given value of x or y.

Any help or ideas would be greatly appreciated!

Jay
BlueJay
 
Posts: 2
Joined: Thu Nov 10, 2011 6:17 pm

Re: PDETOOL Matlab - Plotting a linear element?

Postby BlueJay » Fri Nov 11, 2011 11:41 am

To add more detail to my problem...

Using the pdetool I created 3 rectangles (using the first method you described), 1 large rectangle (R1) and 2 smaller rectangles (R2 and R3) that are within R1 but not in contact. By applying the formula R1-(R2+R3) and solving it as an electrostatic system in the toolbox I essentially get the cross-sectional surface plot of 2 electrodes (given below).

Image

What I would now like to do is for example just look at the values at say y=6 and plot a simple x-y graph which would look something like below:

Image

I guess my fundamental problem is not being able to access the information from the surface plot to then manipulate the data. Any insight anyone has into the problem would be greatly appreciated!

Jay
BlueJay
 
Posts: 2
Joined: Thu Nov 10, 2011 6:17 pm


Return to MATLAB Help

Who is online

Users browsing this forum: No registered users and 2 guests