Question

In MATLAB graph: Voltage = 5V Resistance = 10 ohms Current = 5A The graphs must...

In MATLAB graph:

Voltage = 5V

Resistance = 10 ohms

Current = 5A

The graphs must be scaled to show the plotted curves as large as possible. Label the axis with proper units.


the question cant be more clear, please if you dont understand pass it to someone else to be answer
0 0
Add a comment Improve this question Transcribed image text
Answer #1

MATLAB CODE

clc; %clear the command line
clear all; %clear the work space
close all; %closes all open matlab window
V=5; %Given Voltage Value
I=5; %Given Current Value
R=10; %Given Resistance Value
t=0:0.5:30; % Time vector for generating the voltage , Current and Resistance
for i=1:length(t)
voltage(i)=V; % Voltage values for 30 sec
Current(i)=I; % Current values for 30 sec
Resistance(i)=R; % Resistance values for 30 sec
end

%% Generating an individual graphs
figure() % Creates a figure
plot(t,voltage,'r') % Plotting Time on X axis and Voltage on y axis
title('Voltage Graph') % title of the graph
xlabel('Time(sec)') % x-axis label
ylabel('Voltage(V)') %y-axis label
axis([0 30 0 5.5]) % axis limit (x-axis limits followed by y-axis limits)
% Same procedure for plotting current and Resistance graphs
figure()
plot(t,Current,'b')
title('Current Graph')
xlabel('Time(sec)')
ylabel('Current(A)')
axis([0 30 0 5.5])
grid on
figure()
plot(t,Resistance,'g')
title('Resistance Graph')
xlabel('Time(sec)')
ylabel('Resistance(ohms)')
axis([0 30 0 10.5])
grid on

Voltage graph

Current graph

Resistance graph

Thankyou

Add a comment
Know the answer?
Add Answer to:
In MATLAB graph: Voltage = 5V Resistance = 10 ohms Current = 5A The graphs must...
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
  • 3- An electric circuit has internal resistance of 50 ohms. The current I = Voltage Resistance...

    3- An electric circuit has internal resistance of 50 ohms. The current I = Voltage Resistance +50) or I = V/(R+50) The Power P = 12*R (units watts) Write a Matlab script where voltage V = 10 volts and Calculate the Current and Power for the following Resistor values: [ 10, 20, 30, 40.50.60.70, 80 1001 Plot the current and power vs resistance on the same plot using plotvy function.- Left y axis is current, and right y axis is...

  • 45 T or F The most common linear circuit is the amplifier circuit 46 T or...

    45 T or F The most common linear circuit is the amplifier circuit 46 T or F Both a resistor and a diode are linear devices. 47 I or F A high pass filter on the output of a rectifier is commonly used since you want to block DC voltages and keep high frequencies 48 T or F If the voltage across a one ohm resistor is one volt, the current is 1 A 40 T A LL graphs must...

  • i really need help with the graphs Driving Can Be Dangerous to Your Health: An Interrupted...

    i really need help with the graphs Driving Can Be Dangerous to Your Health: An Interrupted Case Study in Physiology Phil Stephens Department of Biology Villanova University Part 1-The Grandparents Arrive Dave pulled the cell phone out of his pocket, cursing himself for not putting it on vibrate. The children, Jason and Laura, were both asleep, and he knew that the rest of the day would not be fun if they were awakened from their naps. "Hi, Dave. We're just...

  • I need Summary of this Paper i dont need long summary i need What methodology they used , what is the purpose of this p...

    I need Summary of this Paper i dont need long summary i need What methodology they used , what is the purpose of this paper and some conclusions and contributes of this paper. I need this for my Finishing Project so i need this ASAP please ( IN 1-2-3 HOURS PLEASE !!!) Budgetary Policy and Economic Growth Errol D'Souza The share of capital expenditures in government expenditures has been slipping and the tax reforms have not yet improved the income...

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
ADVERTISEMENT