Plot the electric field distribution ?
62 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Mary Jon
el 17 de Mzo. de 2014
Respondida: Antonio Cedillo Hernandez
el 21 de Abr. de 2020
how Plot the electric field distribution above the contour ?
% Plot the electric field distribution
figure;
v_now;
[ex,ey]=gradient(v);
quiver(-ex,-ey); %Quiver command creates a plot, E=-grad(V), hence the negative sign
title('potential ')
how put contour in the same figure of electric field distribution?
0 comentarios
Respuesta aceptada
Mischa Kim
el 17 de Mzo. de 2014
Editada: Mischa Kim
el 17 de Mzo. de 2014
Use hold all before or after the first plot command:
quiver(...) % replace the dots with your data
hold all;
contour(...)
4 comentarios
Más respuestas (1)
Antonio Cedillo Hernandez
el 21 de Abr. de 2020
Here you have the full MATLAB code explained (in spanish but the first comment is the code): https://www.youtube.com/watch?v=k9srU6aQfL0
0 comentarios
Ver también
Categorías
Más información sobre Vector Fields en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!