Skip to content
Snippets Groups Projects
Commit 4ca9e8e1 authored by Laura Nervo's avatar Laura Nervo
Browse files

Commenting and small formatting...


Signed-off-by: default avatarLaura Nervo <laura.nervo@esrf.fr>
parent 54470a84
No related branches found
No related tags found
No related merge requests found
......@@ -164,6 +164,7 @@ if nargout == 1
data.ycrys = ycrys;
data.zcrys = zcrys;
data.lcrys = lcrys;
data.app = app;
if app.draw
data.hf = gcf;
if app.patch
......
......@@ -18,7 +18,7 @@ function [mis_angle, mis_axis, info] = gtDisorientation(ori1, ori2, symm, vararg
% mode = <string> Mode of rotation ({'passive'} or 'active')
% sort = <string> Sort disorientation axis components after taking
% absolute values (if empty, do nothing at all)
% ({''}, 'descend' or 'descend')
% ({''}, 'ascend' or 'descend')
%
% OUTPUT:
% mis_angle = <double> Misorientation angles between the 2 grain sets
......
function export(name,hf)
function export(name,hf)
if isempty(hf)
hf = gcf;
end
export_fig(fullfile('8_analysis','figures',name),'-png','-r300','-transparent',hf)
saveas(hf, fullfile('8_analysis','figures',name), 'fig')
disp(['Saved figure as ' fullfile('8_analysis','figures',name) '.fig'])
......
......@@ -63,7 +63,7 @@ mis_angle = mis_angles(dummy);
if nargout > 1
mis_axis = misorientation_axes{dummy};
if exist('latticepar', 'var') && ~isempty(latticepar)
if (~isempty(latticepar))
mis_axis = gtCart2Hex(mis_axis, latticepar);
end
......
......@@ -49,14 +49,13 @@ else
gtError('rotateVectors:missingArgument','The angle/axis information is missing...Quitting')
end
if size(vectors,2) < size(vectors,1) && ~isRowVectorWithLength(vectors,3)
if size(vectors,2) ~=3 && size(vectors,1) == 3
vectors = vectors';
elseif size(vectors,2) ~= 3
gtError('rotateVectors:wrongSize','size(vectors,2) must be 3...Quitting')
end
N = size(vectors,1);
new_vectors = arrayfun(@(num) (R * vectors(num,:)')', 1:N, 'UniformOutput', false)';
if app.cell2mat
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment