Question

In: Electrical Engineering

Write a MATLAB code to calculate the electricity usage in a residential home. Note: Thing that...

Write a MATLAB code to calculate the electricity usage in a residential home.
Note: Thing that impact the charge could be number of rooms, square feet, electric appliances. Plot the electricity charge in terms of the variability.

Solutions

Expert Solution

Ans: To calculate the electricity usage we use the following formula: It is for electric appliaces wise:

where

e= electricity charges

W= power of electrical appliance(in watts)(we can add power of all the devices)

H= time (in hours)

R= electricity rate (in $ or Rs. per KWh)

Matlab function for above formula:

function e= electric_usage_charge(w, h, r)

e = w*h/1000 * r;

clc; clear; close all; format bank; format compact

w = input('Enter power of your device ( in watts): ');

h = input('Enter time (in hours): ');

r = input('Enter electricity rate (in $ or Rs. per KWh): ');

e = electric_usage_charge(w, h, r)

To calculate the electricity usage we use the following formula: It is for square feet wise:

where

e= electricity charges

K = electricity consumption per sqft area of the house

A= total area of the house in sqft

R= electricity rate (in $ or Rs. per KWh)

Matlab function for above formula:

function e= electric_usage_charge(k, a, r)

e = k * a * r;

clc; clear; close all; format bank; format compact

k = input('Enter per sqft consumption ( in kilowattshour): ');

a = input('Enter area (in sqft): ');

r = input('Enter electricity rate (in $ or Rs. per KWh): ');

e = electric_usage_charge(w, h, r)

To calculate the electricity usage we use the following formula: It is for number of room wise:

where

e= electricity charges

K = electricity consumption per room of the house

N= total number of rooms in the house

R= electricity rate (in $ or Rs. per KWh)

Matlab function for above formula:

function e= electric_usage_charge(k, n, r)

e = k * n * r;

clc; clear; close all; format bank; format compact

k = input('Enter per room consumption ( in kilowattshour): ');

a = input('Enter number of rooms (in unit): ');

r = input('Enter electricity rate (in $ or Rs. per KWh): ');

e = electric_usage_charge(w, h, r)


Related Solutions

How to design FIR lowpass filter using matlab. Note : Do not write matlab code. Only...
How to design FIR lowpass filter using matlab. Note : Do not write matlab code. Only explain the steps of designing filter
In order to estimate the average electricity usage per month, a sample of 40 residential customers...
In order to estimate the average electricity usage per month, a sample of 40 residential customers were selected, and the monthly electricity usage was determined using the customers' meter readings. Assume a population variance of 12,100kWh2. Use Excel to find the 98% confidence interval for the mean electricity usage in kilowatt hours. Round your answers to two decimal places and use ascending order. Electric Usage 765 1139 714 687 1027 1109 749 799 911 631 975 717 1232 806 637...
In order to estimate the average electricity usage per month, a sample of 125 residential customers...
In order to estimate the average electricity usage per month, a sample of 125 residential customers were selected, and the monthly electricity usage was determined using the customers' meter readings. Assume a population variance of 12,100kWh2. Use Excel to find the 98% confidence interval for the mean electricity usage in kilowatt hours. Round your answers to two decimal places and use ascending order. Electric Usage 765 1139 714 687 1027 1109 749 799 911 631 975 717 1232 806 637...
The following code must be written using matlab and must be using a for-loop. NOTE! Write...
The following code must be written using matlab and must be using a for-loop. NOTE! Write a computer program that assigns random integers for each entry and generates a row vector. Different random integers should be drawn from different intervals for position 1, position 2, position3 and position 4 of the array. After these first 4 positions are drawn. The whole thing should start over where position5 drawn from same interval as positions 1, position6 drawn from same interval as...
The following code must be written using matlab and must be using a for-loop. NOTE! Write...
The following code must be written using matlab and must be using a for-loop. NOTE! Write a computer program that assigns random integers for each entry and generates a row vector. Different random integers should be drawn from different intervals in chunks of 4 , that is chunk1-chunk2-chunk3-chunk4 The parameters for specifying the lintervals by which the random numbers should be drawn should be able to change and be hardcoded in the script, however, be hardcoded in the script.
write the code in MATLAB with comments and show the inputs and results of the code...
write the code in MATLAB with comments and show the inputs and results of the code for the question below. Write an .m file in MATLAB, that records audio (you can record your own voice for 20 seconds that was recorded using your phone), then take Fourier transform of the signal (probably FFT).
Matlab Code Write a procedure to calculate the log discriminant function for a given multi-variate Gaussian...
Matlab Code Write a procedure to calculate the log discriminant function for a given multi-variate Gaussian distribution and prior probability
matlab code to calculate cost of generator in power system
matlab code to calculate cost of generator in power system
show the MATLAB Code with comments and Write an .m file in MATLAB, that records audio...
show the MATLAB Code with comments and Write an .m file in MATLAB, that records audio (you can record your own voice for 20 seconds), takes Fourier transform of the signal (probably FFT).
write a matlab code to simulate fiber optics communication system on matlab simulink
write a matlab code to simulate fiber optics communication system on matlab simulink
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT