Matlab

Moderators: None (Apply to moderate this forum)
Number of threads: 1471
Number of posts: 2147

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
current sink and source Posted by allystone on 11 Apr 2009 at 4:04 AM
I am having problems modelling an input and output current source. This is my code at the moment:

xSamp = .1;
ySamp = .1;
[X, Y] = meshgrid(0:xSamp:10,0:ySamp:10);
IIn = [min(min(X)) min(min(Y))]';
IOut = [max(max(X)) max(max(Y))]';
I = 10;

Which obviously has I = 10 at both Iin and Iout. I need to have the current at Iout to be equal and opposite to that at Iin. I was thinking of maybe trying to model them as wells, but i think that gets into fluid flow problems.

I also need to place an equipotential boundary at the edges of my plane (which here runs from 0 to 10 in both the x and y directions).

Again, my knowledge of Matlab is very basic, which i guess is painfully obvious from my questions, so if i am asking stupid questions please just humour me.

Cheers for your time (again)

Ally




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.