Question: % 1 . Initialize inputs % initialize omega and peak voltage omega = 2 * * pi * * 6 0 ; v m =
Initialize inputs
initialize omega and peak voltage
omega pi ;
Create a d array for segment using a small interval and initialize the peak current for that segment
t::;
Imsqrt; RMS current for segment for a sine wave, RMS peaksqrt
Create a array for segment using a small interval and initialize the peak current for that segment
::;
Im;
Create a array for segment using a small interval and initialize the peak current for that segment
t::;
Im;
Do the magic calculate current, voltage, and power
: Calculate instantaneous current for segement segment and segement respectively
omega ;
i;
omega ;
Join the time for the three segements into one big d array
;
Join the instantaneous current for the three segements into one big d array
calculate the instantaneous voltage for all segments
Calculate the instantaneous power for all segments
plot the voltage, current, and power
figure;
plot;
title Instantaneous Voltage vs Time'
labelTime s
ylabelVoltage V
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
