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

  Finite difference method

Use the finite difference method to calculate the temperature at the point specified since it is easier.

  Determine the necessary shell temperature

In a shell-and-tube heat exchanger, one fluid passes through a central tube while another fluid flows through an outer shell in the opposite direction. The purpose is to heat the fluid passing through the central tube.

  Find the integral of a function at an arbitrary location

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule

  Compute the speed of single-stage planetary gear train

Write a MATLAB function [speed] = planetary (N, emesh, first, last, arm) that computes the speed of a given link in a single-stage planetary gear train.

  Calculate and plot the error in the numerical derivative

Write a program to calculate and plot the error in the numerical estimate of the derivative.

  Create the graph using matlab functions

Create the graph, which contains a piecewise function where a line exists in the first interval, a parabola in the second interval, and the sine function in the third interval.

  Develop a simulation program

Develop a simulation program

  Create a vector in matlab

Create a three dimensional diagram of function.

  Open a named pipe and to read data from the pipe

Open a named pipe and to read data from the pipe in matlab

  Write the commands that will create the matrix

Write the commands that will create the matrix.

  Lagrange interpolating polynomial of degree

Lagrange interpolating polynomial of degree

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