How to create a plimpulseresponse handle so I can run the PLECS impulse response analysis from MATLAB?

The helps state, "An analysis can be started either by clicking the button Start analysis or with the MATLAB command

plimpulseresponse(block);

where block is the Simulink handle or the full block path of the Impulse Response Analysis block."

How do I determine the handle so I can run the PLECS impulse response analysis from MATLAB?

There are multiple ways to get a block handle in Simulink. You can, for example, select the impulse response block in the Simulink schematic and use

handle = gcbh;

or

plimpulseresponse(gcbh);

directly.Another option is the command getSimulinkBlockHandle() to get the handle from a given model path. See the Matlab/Simulink online help of these commands for more details.