Central process units (CPUs) are the electronical circuitry part of computers that execute the instructions comprising a

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Central process units (CPUs) are the electronical circuitry part of computers that execute the instructions comprising a

Post by answerhappygod »

Central Process Units Cpus Are The Electronical Circuitry Part Of Computers That Execute The Instructions Comprising A 1
Central Process Units Cpus Are The Electronical Circuitry Part Of Computers That Execute The Instructions Comprising A 1 (118.46 KiB) Viewed 37 times
function array = txt2array(file)% txt2table: MECH2103 Lab 4 function% use this function to conver a txt file into an array% array = txt2table(file)% input:% file: asci vector containing the file name% output:% array = array extracted from txt filearray = table2array(readtable(file));end
please explain in the matlab code the process
Central process units (CPUs) are the electronical circuitry part of computers that execute the instructions comprising a computer program. Since they are made of transistors, they need power to switch voltage levels between logic Os and 1s. The more instructions a CPU executes, the more power it consumes. You are part of a research team that is analyzing the power that CPUS consume while running artificial intelligence (AI) and/or machine learning (ML). An electrical engineer oversees logging the current consumed by the CPU and you must process that data, which is received in a txt file. The txt file contains the current that has been consumed by the processor. Keep in mind that the logged data refers to current in mA and the voltage supplied was 12V DC, so you need to convert it to Watts first. Use MATLAB to calculate and print the following parameters (all in Watts). Power avg max min Total 14.16 27.52 8.07 Experiment Only 17.16 27.52 8.59 Where "total" refers to the total data in the txt file and "experiment only" refers to the part of the data where the experiment is run (from sample 243 to sample 792). To visualize the data better please make a plot of both parameters. They should look like the figure provided below.
30 20 o xlim() o ylim() o fprintf() o mean() o max() o min() 10 0 0 30 20 10 100 200 300 400 500 600 Experiment only 100 Total 200 300 400 700 800 may 500 Figure 1. Experiment and total data plots Software Requirements Specification (SRS): • No loops and/or if statements are allowed to be used. • The script must open a txt file and convert it to a 1D array. • The script can create subfunctions, but this is not mandatory. • The script must use the following functions only: o txt2array() (provided by the instructor in blackboard) o subplot() o plot() o title() Please submit your work on two pdf files by July 8 no later than 10:00 PM on blackboard. For your MATLAB script please make pdf version using the "publish as PDF" tool. The txt2array() function and the txt file data can be found in blackboard, you will need to import them into your workspace to use them. An example video has been submitted on blackboard as well. If you have any question or get stuck, please show it to the instructor after lectures to get some feedback, corrections and hints.
Hints: 1A= 1000mA. The formula for power is P = V * I Where P stand for power in watts. V is voltage in volts and I is current in amperes (A).
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply