Skip to content

Commit 2046006

Browse files
author
Usseglio-Viretta
committed
Update microstructure_generation_ellipsoids_GUI.m
Fixed particle orientation visualization in the GUI
1 parent 2c582cf commit 2046006

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Microstructure_generation/microstructure_generation_ellipsoids_GUI.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1619,10 +1619,10 @@ function Visual_Plot_button_callback_tab3(~,~)
16191619
tmp1 = visual_check_table_tab2.Data;
16201620
tmp = cell2mat(tmp1(:,2));
16211621
tmp2 = visual_check_table_tab3.Data;
1622-
tmp3 = cell2mat(tmp2(:,2));
1623-
dz = tmp(1,:);
1624-
dx = tmp(3,:)*dz;
1625-
dy = (1/tmp(2,:))*dx;
1622+
tmp3 = cell2mat(tmp2(:,2));
1623+
dx = tmp(1,:);
1624+
dy = dx/tmp(2,:);
1625+
dz = dx/tmp(3,:);
16261626
mincheck = [dx,dy,dx];
16271627
linelength = (1/3)*min(mincheck);
16281628
angle_x_deg = tmp3(1,:);

0 commit comments

Comments
 (0)