Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 3: For this problem, you will need the P3.mat file on the metasite. Save the file in your current MATLAB folder. The P3.mat file

image text in transcribed

Problem 3: For this problem, you will need the P3.mat file on the metasite. Save the file in your current MATLAB folder. The P3.mat file contains two vectors: one for time, t, and another with power measurements, Power, measured in kW The energy consumption (kWh) is related to the integral of the power (kW) as follows: Energy 3600 Power dt Write a script file to do the following: Load the data file, P3.mat. d by lines. Estimate the energy consumption over time assuming Energy(0) 65 kWh by applying the Trapezoid Estimate for the integral to the power measurements. Use the figure command to open a new plot window. Plot the estimates for energy consumption over time as data points on the same plot. * Add an fprintf statement to display the final value for energy consumption. PASTE Results of fprintf statements here: PASTE PLOTS HERE: PASTE SCRIPT FILE HERE: Problem 3: For this problem, you will need the P3.mat file on the metasite. Save the file in your current MATLAB folder. The P3.mat file contains two vectors: one for time, t, and another with power measurements, Power, measured in kW The energy consumption (kWh) is related to the integral of the power (kW) as follows: Energy 3600 Power dt Write a script file to do the following: Load the data file, P3.mat. d by lines. Estimate the energy consumption over time assuming Energy(0) 65 kWh by applying the Trapezoid Estimate for the integral to the power measurements. Use the figure command to open a new plot window. Plot the estimates for energy consumption over time as data points on the same plot. * Add an fprintf statement to display the final value for energy consumption. PASTE Results of fprintf statements here: PASTE PLOTS HERE: PASTE SCRIPT FILE HERE

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Information And Database Systems 6th Asian Conference Aciids 2014 Bangkok Thailand April 7 9 2014 Proceedings Part I 9 2014 Proceedings Part 1 Lnai 8397

Authors: Ngoc-Thanh Nguyen ,Boonwat Attachoo ,Bogdan Trawinski ,Kulwadee Somboonviwat

2014th Edition

3319054759, 978-3319054759

More Books

Students also viewed these Databases questions

Question

2. Define communication.

Answered: 1 week ago