📄 sorting.m
字号:
function [out_mat,r]=sorting(in_mat,x,a); %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% This function sorts the x coordintates because they are from ABAQUS% sorted after node numbers, now they will be sorted after distance% from cracktip - together with the result matrise (stress or strain)%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% [x_out,i]=sort(x); length_x=length(i); [n,m]=size(in_mat); for j=1:n out_mat(j,:)=in_mat(i(j),:); end if min(x)==0; x_out=turn(x_out); out_mat=turn(out_mat); r=1000-a-x_out; elseif max(x)==W; r=x_out-a; end;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -