Shoutbox

Little help with MATLAB - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: Little help with MATLAB (/showthread.php?tid=94488)

Little help with MATLAB by Chancer on 04-29-2010 at 11:21 PM

Has anyone ever used MATLAB?

I have a matrix of electric potentials values, and used contour to draw equipotential lines. Just fine. Now, I need to draw the current lines, which are perpendicular to the equipotential lines.
[Image: attachment.php?pid=993326]
I draw these 3 lines using paint, that's why it sucks, but I think you can understand.
Using quiver was very close to what I need, but it plots arrows, instead of lines.


RE: Little help with MATLAB by Chancer on 04-30-2010 at 12:00 AM

Nevermind.

I defined:

MATLAB code:
[DX, DY] = gradient(m) %m is the matrix.
streamslice(DX, DY);

[Image: attachment.php?pid=993328]
RE: Little help with MATLAB by Chris4 on 04-30-2010 at 10:49 AM

I started using it, but not that advanced.


RE: Little help with MATLAB by Chancer on 05-01-2010 at 01:25 AM

Advanced? I started last week...