Insights Blog
-- Browse All Articles --
Physics Articles
Physics Tutorials
Physics Guides
Physics FAQ
Math Articles
Math Tutorials
Math Guides
Math FAQ
Education Articles
Education Guides
Bio/Chem Articles
Technology Guides
Computer Science Tutorials
Forums
Intro Physics Homework Help
Advanced Physics Homework Help
Precalculus Homework Help
Calculus Homework Help
Bio/Chem Homework Help
Engineering Homework Help
Trending
Featured Threads
Log in
Register
What's new
Search
Search
Search titles only
By:
Intro Physics Homework Help
Advanced Physics Homework Help
Precalculus Homework Help
Calculus Homework Help
Bio/Chem Homework Help
Engineering Homework Help
Menu
Log in
Register
Navigation
More options
Contact us
Close Menu
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Forums
Homework Help
Engineering and Comp Sci Homework Help
Calculate and plot real and reactive power matlab
Reply to thread
Message
[QUOTE="DODGEVIPER13, post: 4661281, member: 389722"] [h2]Homework Statement [/h2] Write a Matlab function to compute and plot real and reactive power consumed (or supplied) by a known impedance (the value of complex impedance should be used as the function’s input) as a function of either current or voltage (use a character: V or I as a second input) for a predefined range of 0-200 V or 0-10 A. Your function must report the impedance value in the plot title. Both, real and reactive powers should be plotted on the same axes. Verify functionality of your module for 300+j100 Ω and 100-j100 Ω impedances. Plot the power both vs. voltage and current (total of four separate graphs). [h2]Homework Equations[/h2] [h2]The Attempt at a Solution[/h2] function[Real,Reactive]=Compute_Power_Real_Reactive(impedance,V) I=V/abs(impedance); theta=atan(imag(impedance)/real(impedance)); P=V*I*cos(theta); Q=V*I*sin(theta); disp(P); disp(Q); end This is my code so far this is what I get: >> Compute_Power_Real_Reactive(300+100i,1:50:200) ? Error using ==> mtimes Inner matrix dimensions must agree. Error in ==> Compute_Power_Real_Reactive at 7 P=V*I*cos(theta); I cannot figure out why this doesn't work [/QUOTE]
Insert quotes…
Post reply
Forums
Homework Help
Engineering and Comp Sci Homework Help
Calculate and plot real and reactive power matlab
Back
Top