Changeset 1158 for trunk/src/plot_field.m
- Timestamp:
- Jul 12, 2024, 8:46:38 AM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/plot_field.m
r1152 r1158 1331 1331 n=size(xc); 1332 1332 xN=NaN*ones(size(xc)); 1333 matx=[xc(:) -uc(:)/2 xc(:)+uc(:)/2xN(:)]';1333 matx=[xc(:) xc(:)+uc(:) xN(:)]'; 1334 1334 matx=reshape(matx,1,3*n(2)); 1335 maty=[yc(:) -vc(:)/2 yc(:)+vc(:)/2xN(:)]';1335 maty=[yc(:) yc(:)+vc(:) xN(:)]'; 1336 1336 maty=reshape(maty,1,3*n(2)); 1337 1337 … … 1339 1339 arrowplus=rot*[uc;vc]; 1340 1340 arrowmoins=rot'*[uc;vc]; 1341 x1=xc+uc/2-arrowplus(1,:); 1342 x2=xc+uc/2; 1343 x3=xc+uc/2-arrowmoins(1,:); 1344 y1=yc+vc/2-arrowplus(2,:); 1345 y2=yc+vc/2; 1346 y3=yc+vc/2-arrowmoins(2,:); 1341 % x1=xc+uc/2-arrowplus(1,:); 1342 % x2=xc+uc/2; 1343 % x3=xc+uc/2-arrowmoins(1,:); 1344 % y1=yc+vc/2-arrowplus(2,:); 1345 % y2=yc+vc/2; 1346 % y3=yc+vc/2-arrowmoins(2,:); 1347 x1=xc+uc-arrowplus(1,:); 1348 x2=xc+uc; 1349 x3=xc+uc-arrowmoins(1,:); 1350 y1=yc+vc-arrowplus(2,:); 1351 y2=yc+vc; 1352 y3=yc+vc-arrowmoins(2,:); 1347 1353 matxar=[x1(:) x2(:) x3(:) xN(:)]'; 1348 1354 matxar=reshape(matxar,1,4*n(2));
Note: See TracChangeset
for help on using the changeset viewer.