ALEVEL Slice virkler.mat at a given crack length.
Script to computer exercises 1 |
01 function L=alevel(v,l) 02 % ALEVEL Slice virkler.mat at a given crack length. 03 [n,m]=size(v); 04 L=[]; 05 for j=2:m 06 for i=1:n-1 07 if v(i,1)<=l & v(i+1,1)>l 08 L=[L (v(i,j)+v(i+1,j))/2]; 09 end 10 end 11 end 12
Comments or corrections to the WAFO group