Write a matlab script and calculate the normalized scores

Assignment Help MATLAB Programming
Reference no: EM13701562

You need to implement these questions in MATLAB.

Question 1: Write a MATLAB script that, when given a vector of numbers, nums, creates a vector newNums containing every other element of the original vector, starting with the first element. For example, nums = [6 3 56 7 8 9 445 6 7 437 357 5 4 3] newNums should be [6 56 8 445 7 357 4]. 

Use the for loop instead and Do not use any MATLAB functions except input() and length().

Question 2: You are given a vector of test scores and wish to normalize these scores by computing a new vector, normTests, which will contain the test scores on linear scale from 0 to 100. A zero still corresponds to a zero, and the highest test score will correspond to 100.

For example, tests = [90 45 76 21 85 97 91 84 79 67 76 72 89 95 55];

normTests should be [92.78 46.39 78.35 21.65 87.63 100 93.81 86.6 ... 81.44 69.07 78.35 74.23 91.75 97.94 56.7];

Do not use any MATLAB functions except length() and input(). Calculate the normalized scores by dividing each score by the highest score. You have to satisfy the requirements specific in the instruction.

 

Reference no: EM13701562

Questions Cloud

Pick a labor union movement leader from the us : Pick a labor union movement leader from the US who was in the news or in power at any time between 1900 and 1970. Then, research this person and his or her contributions to the growth of unionization in the United States. After you have conclud..
Draw the logic diagram for a circuit : Draw the Logic diagram for a circuit that resolves priority among eight active-low inputs, 10_L-17_L, where 10_L has the highest priority.
Stealing and putting the company at risk for tax liability : Todd must face the possibility his best managers may be stealing and putting the company at risk for tax liability action by the IRS. The company is Jennings Department Store and their code of ethics is vague, sparse, and lacks any contact info..
Write a program that allows a salesclerk to enter an item : Write a program in C++ that allows a salesclerk to enter an item's price and the quantity purchased by a customer.
Write a matlab script and calculate the normalized scores : Write a MATLAB script that, when given a vector of numbers, nums, creates a vector newNums containing every other element of the original vector, starting with the first element.
Products-chocolate bars or bottles of expensive : Choose one of these products-chocolate bars or bottles of expensive perfume-and describe how marketers can apply their knowledge of the J.N.D. to packaging, pricing, and promotional claims during periods of (a) rising ingredient and materials c..
Values of the cf and of : assume that EAX contains a given contents before the instruction is executed, and give the contents of EAX as well as the values of the CF, OF, SF, and ZF flags after the instruction is executed:
Describe the relationship between a corporation commont : 1. Describe the relationship between a corporation's common stockholders, its board of directors, and its chief executive officer (CEO).
Program that displays the approximate number of customers : Write a program that displays the approximate number of customers in the survey who purchase one or more energy drinks per week.

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Explore the design of a recursive digital filter

In this simulation we are going to explore the design of a recursive digital filter which might be usedvin a digital radio station. The sampling frequency used in digital radio (DAB) is either 48 kHz or 24 kHz and for the purposes of this simulation,

  Compare with the true value

compare with the true value of 6.737947 x 10 -3  . Use 20 terms to evaluate each series and compute true and approximate relative errors as terms are added.

  Estimate the numerical wave speed

Scheme and try a couple of values for α, one close to 1 and the other not. Convince yourself that a smaller Δt is not necessarily a better choice.

  Draw the set x on a two-dimensional plane

Draw the set X on a two-dimensional plane and draw the set Yon a two-dimensional plane. Comment on the mapping - Draw the set Z on a two-dimensional plane.

  Simulate rigid body mechanics

Write a MATLAB code to simulate rigid body mechanics. Create a video file of a free falling rod. Neglect effects from drag or loss of kinetic energy. Make sure the rod falls onto one end showing how the rigid body reacts to hitting the ground. Cannot..

  Write a functions

The function range basis takes a matrix A as input, and outputs a basis (again written as columns) for the range space of A.

  Write a program to compute a

Write a program to compute A. Test it with P = $55,000 and interest rate of 6.6% (i = 0.066). Compute results for n = 1, 2, 3, 4, and 5 and display the results as a table with headings and columns for n and A

  Program should be able to handle collisions

Write a program that, given a list of 5 social security numbers, finds the memory locations assigned by the hashing function h(k) = k mod 55 to store customer records. program should be able to handle collisions.

  It is now cooled so the volume becomes half the initial

a piston cylinder loaded so it gives constant pressure has 0.75 kg saturated vapor water at 200 kpa. it is now cooled

  Create an animation of a square

create an animation of a square according to the directions below. Create a square with a side length of 3 with the square centered at (5,5). Translate this square along a cosine wave on the interval [0, 6*pi].

  Considered to equal when the result of one array subtract

Two arrays are considered to be equal when the result of one array subtracted from the other is an array of zeros. In the script file, create the MATLAB commands to prove the following relationships (use arrays that you makeup yourself)

  Plot way forms for the subsequent modulation schemes

Plot way forms for the subsequent modulation schemes using Matlab

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd