i had this problem in the trx for a while, it got quite bad actually while i was trying to figure out what the hell it was.. but now i cant remember what the hell i did to fix it.
i know i replaced plugs, leads, pumped the intake full of throttle body cleaner, checked for intake leaks, replaced the dizzy cap & rotor, replaced the coil, replaced the fuel pressure regulator, fuel pump and fuel filter.. also air filter too.. changed where i got my fuel from, went back to a stock tune.. it was an expensive process.
i think though, that the improvements came when i replaced the coil.
oh actually, i think i had this problem with the t as well.. there is something next to the coil, or attached to the same bracket as the coil, i believe its called a power transistor.. they fail quite often in the 300zx.. but i replaced this and i think this might have fixed it!