Need to create surface and contour plots of potential and electric field distribution
9 views (last 30 days)
Show older comments
I am given this image. I need to create a program to show the potential distribution and electric field distribution, surface and contour for each. So far i have solved the BVP and have started my code. This is what i have.. any help would be greatly appreciated.
clear all;
V = [];
Vo = 12.0;
a = 0.12;
b = .3;
x = b/4;
y = 3.*a/4;
c = 4.*Vo./pi;
sum = 0.0;
for k=1:10
n = 2*k - 1;
a1 = sin(n*pi*x/b);
a2 = sinh(n*pi*y/b);
a3 = n*sinh(n*pi*a/b);
sum = sum + c*a1*a2/a3;
V = [n, sum]
end
mesh(V)
xlabel('sum');
ylabel('n');
0 Comments
Answers (0)
See Also
Categories
Find more on Surface and Mesh Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!