Question

According to given data ; frequency = 100 hz , w(angular frequency)=2pi*f , Im= 2A, Vm=...

According to given data ;

frequency = 100 hz , w(angular frequency)=2pi*f , Im= 2A, Vm= 4V , Qi=3 (degree) , Qv=38(degree)

Can you plot instantaneous voltage, current and power ; v(t), i(t), p(t) by using Matlap in the same graph with different colors?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

MATLAB Code:

clc;
clear all;
f=100; %frequency
W=2*pi*f; %Angular frequency in rad/sec
Vm=4; %Voltage maximum
Im=2; %Current maximum
teta_v=38; %Voltage angle in degrees
teta_i=3; %Current angle in degrees
t=0:0.0001:0.05; %time vector
for i=1:1:length(t) %For loop for all time values
%As sin function takes variables in radians, voltage and current angles in degrees are converted to radians by multiplying with 180/pi
V(i)=Vm*sin(W*t(i)+teta_v*(180/pi)); %Instantaneous voltage calculation at each time value
I(i)=Im*sin(W*t(i)+teta_i*(180/pi)); %Instantaneous current calculation at each time value
P(i)=V(i)*I(i); %Instantaneous power calculation at each time value
end
plot(t,V,"red",'DisplayName','Voltage')
%plot(t,(Ang(i,:)-Ang(sbr,:))*(180/pi),['delta(' num2str(i) ')']);
xlabel("Time in sec");
ylabel("Instantaneous Values");
legend('show')
hold on;
grid on;
plot(t,I,"blue",'DisplayName','Current')
plot(t,P,"green",'DisplayName','Power')

Results:

**Here, type of the waveform is not mentioned whether it is sin or cos. For explanation sine wave is taken. If it is required to change it to cos, replace sin with cos in code.

Add a comment
Know the answer?
Add Answer to:
According to given data ; frequency = 100 hz , w(angular frequency)=2pi*f , Im= 2A, Vm=...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • I NEED HELP WITH QUESTION #5 PLEASE AND CAN SOME FILL OUT THE FIRST ROW OF...

    I NEED HELP WITH QUESTION #5 PLEASE AND CAN SOME FILL OUT THE FIRST ROW OF MY TABLE FOR 10Hz. I DONT KNOW HOW TO DO IT SO IF SOME CAN FILL OUT THE FIRST TABLE AND SHOW ME HOW, THEN I CAN FINISH THE REST. THANK YOU. Reset Run / STOP 2uF Simulation Speed Current Speed 0 Power Brightness Current Circuit: 10Hz 1k New X S -15.933 V 100.165 ms 167.681 V capacitor, 2 UF 21.071 V resistor, 1...

  • just one example/demonstration! Data needed to be calculated is in highlighted in green boxes. And I...

    just one example/demonstration! Data needed to be calculated is in highlighted in green boxes. And I highlighted in red an equation (not sure if thats what you use to calculate it) And ignore the lab instructions on completeing a graph!! I already know how to do that in excel, just curious how Ln (relative rate) and 1/T in K^-1 is calculated by hand* here is the rest of that lab leading up to the question as I know its typically...

  • 1. According to the paper, what does lactate dehydrogenase (LDH) do and what does it allow...

    1. According to the paper, what does lactate dehydrogenase (LDH) do and what does it allow to happen within the myofiber? (5 points) 2. According to the paper, what is the major disadvantage of relying on glycolysis during high-intensity exercise? (5 points) 3. Using Figure 1 in the paper, briefly describe the different sources of ATP production at 50% versus 90% AND explain whether you believe this depiction of ATP production applies to a Type IIX myofiber in a human....

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT