%% Calculate Voltage Derivatives for One Block

% Copyright 2018 The MathWorks, Inc.

%%
% Open the Class E DC-DC Converter example model.
open_system('ee_converter_dcdc_class_e')
%%
% This example model has data logging enabled. Run the simulation to create
% the simulation log variable |simlog_ee_converter_dcdc_class_e| in your 
% current workspace.
sim('ee_converter_dcdc_class_e');
%% 
% Calculate rates-of-change of voltage variables for the LDMOS block with 
% a time step of 1e-9 seconds, and return the time series data in a table.
mosfetTable = ee_getNodeDvDtTimeSeries(simlog_ee_converter_dcdc_class_e.LDMOS,1e-9)
%%
% The table contains time series data of voltage variables and their first 
% derivatives over the whole simulation time for the LDMOS block. The table 
% does not list the S terminal because it is held fixed to the ground.
%
