Changeset 7088
- Timestamp:
- 01/14/11 08:14:03 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/utils/Interp/PatchToVec.m
r4951 r7088 5 5 % vec=PatchToVec(Patch) 6 6 7 %if the patch is P0, we need to transform the vector a little bit first 8 if size(Patch.value,2)==1, 9 Patch.value=[Patch.value Patch.value Patch.value]; 10 end 7 11 connectivity=sparse(Patch.index(:),1,1); 8 12 value =sparse(Patch.index(:),1,Patch.value(:));
Note:
See TracChangeset
for help on using the changeset viewer.