Question: In matlab, when I run this program, only the first graph (voltage versus load resistor) shows a line, and the other ones do not. If

In matlab, when I run this program, only the first graph (voltage versus load resistor) shows a line, and the other ones do not. If anyone could help me see why that's be great

%% Initialization clear, close all; clc;

%% This example shows how to plot voltage, current and power versus RL for battery.

% Voltage versus load resistor VS = 8.61; % Use your value here, note that unit is Volts. RS = 627.6; % Use your value here, note that unit is Ohms. RL = 1:100; % You may change load resistance range for potato, like RL = 1:15000 VL = VS.*RL./(RS+RL); % Eq. 3 (note the ./ for array divide) figure; plot(RL,VL,'b-'); title('Load Voltage vs. Load Resistance Relationship'); xlabel('Load Resistance (Ohms)'); ylabel('Load Voltage (Volts)');

% Current versus load resistor IL = 86.6; % Obviously here IL = 0 is incorrect. Try to figure out and fix IL. figure; plot(RL,IL,'b-'); title('Load Current vs. Load Resistance Relationship'); xlabel('Load Resistance (Ohms)'); ylabel('Load Current (Amps)');

% Power versus load resistor P = 0; % Obviously here P = 0 is incorrect. Try to figure out and fix P. figure; plot(RL,P,'b-'); title('Power vs. Load Resistance Relationship'); xlabel('Load Resistance (Ohms)'); ylabel('Power (Walts)');

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!