Magnetic property of nanomaterial