measure the magnetic field
5 次查看(过去 30 天)
显示 更早的评论
Hi everyone,
I am new with Matlab, I'm tring to measure the magnatic field in a prototype of gradient coil by using biosvat law, the problem is I need arcs instead of streight line in the attached image and I don't know how can I generate these arcs via matlab.
I used this code to simulate the wires pattern.
Looking forward for your help.
thanks in advanced.
% Source points (where there is a current source)
Gamma1 = [0.03,0,0; % x,y,z [m,m,m]
0.19,0,0;
0.19,0.32,0;
0.03,0.32,0;
0.03,0,0
0.03,0,0.25
0.19,0,0.25;
0.19,0.32,0.25;
0.03,0.32,0.25;
0.03,0,0.25];
I1 = 2; % filament current [A]
dGamma1 = 1e-3; % filament max discretization step [m]
[BSmag] = BSmag_add_filament(BSmag,Gamma1,I1,dGamma1);
Gamma2 = [0.41,0,0; % x,y,z [m,m,m] ( 1 and 3 2dam b3d w 2 w 4 nfs alshe)
0.25,0,0;
0.25,0.32,0;
0.41,0.32,0;
0.41,0,0
0.41,0,0.25
0.25,0,0.25;
0.25,0.32,0.25;
0.41,0.32,0.25;
0.41,0,0.25];
I2 = 2; % filament current [A]
dGamma2 = 1e-3; % filament max discretization step [m]
[BSmag] = BSmag_add_filament(BSmag,Gamma2,I2,dGamma2);
1 个评论
Saumya Goel
2019-5-23
You can have a look at this MATLAB Answer which describes on how to plot an arc: https://www.mathworks.com/matlabcentral/answers/367126-plot-an-arc-on-a-2d-grid-by-given-radius-and-end-points.
回答(2 个)
son nguyen xuan
2019-8-23
hi i'm doing the same thing as you. it's about simulating gradient coil in mri. can i ask you some quenstion?
kind regards
0 个评论
ABDUR RAHMAN
2022-6-22
% Source points (where there is a current source)
Gamma1 = [0.03,0,0; % x,y,z [m,m,m]
0.19,0,0;
0.19,0.32,0;
0.03,0.32,0;
0.03,0,0
0.03,0,0.25
0.19,0,0.25;
0.19,0.32,0.25;
0.03,0.32,0.25;
0.03,0,0.25];
I1 = 2; % filament current [A]
dGamma1 = 1e-3; % filament max discretization step [m]
[BSmag] = BSmag_add_filament(BSmag,Gamma1,I1,dGamma1);
Gamma2 = [0.41,0,0; % x,y,z [m,m,m] ( 1 and 3 2dam b3d w 2 w 4 nfs alshe)
0.25,0,0;
0.25,0.32,0;
0.41,0.32,0;
0.41,0,0
0.41,0,0.25
0.25,0,0.25;
0.25,0.32,0.25;
0.41,0.32,0.25;
0.41,0,0.25];
I2 = 2; % filament current [A]
dGamma2 = 1e-3; % filament max discretization step [m]
[BSmag] = BSmag_add_filament(BSmag,Gamma2,I2,dGamma2);
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!