measure the magnetic field

5 ビュー (過去 30 日間)
Ram W
Ram W 2019 年 5 月 16 日
回答済み: ABDUR RAHMAN 2022 年 6 月 22 日
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
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
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

ABDUR RAHMAN
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);

カテゴリ

Help Center および File ExchangeScatter Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by