measure the magnetic field

5 vues (au cours des 30 derniers jours)
Ram W
Ram W le 16 Mai 2019
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 commentaire
Saumya Goel
Saumya Goel le 23 Mai 2019
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.

Connectez-vous pour commenter.

Réponses (2)

son nguyen xuan
son nguyen xuan le 23 Août 2019
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

ABDUR RAHMAN
ABDUR RAHMAN le 22 Juin 2022
% 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);

Catégories

En savoir plus sur MATLAB dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by