Investigating resistance of materials