Create a variable b containing 60 random numbers

Assignment Help Electrical Engineering
Reference no: EM13285457

Q1. Write a Matlab script to do the following. Create the variable A containing the numbers from 1 to 50. Using a FOR loop go through A and count the number of values of A that are above 20.
Q2. Write a Matlab script to create a variable B containing 60 random numbers from 0 to 2. Next using a WHILE loop go through all 60 numbers and count the number of values of B that are below 1.4. Store this answer in the variable COUNT. After exiting the loop simply display the value of COUNT with no message.
Q3. What is the Matlab code to create a graph with the variable t on the X axis and h=4(t-3)^2 on the Y axis? Note that t varies from 0 to 10 with steps of 0.1

Reference no: EM13285457

Questions Cloud

Splash soft drinks case study : Splash Soft Drinks Inc. (SSD) has recently achieved sales that exceeded its expectations after it introduced a new beverage that was greatly welcomed by their customers. The company is currently considering opening a new plant to which some of the pr..
What are probabilities that the value of the noise exceeds : The noise voltage in an electric circuit can be modeled as a Gaussian random variable with 0 mean and 10^-4 standard deviation (a)What are the probabilities that the value of the noise exceeds 10^-4 and 4*10^-4
Find how much additional charge will flow from the battery : A parallel-plate air capacitor of area A = 21.9 cm2 and plate separation of d = 3.60 mm is charged by a battery to a voltage of 64.0 V. how much additional charge will flow from the battery
What percent increase is it forecasting in revenues : If Fleming expects to have $305,100 available from next years retained earnings, what percent increase is it forecasting in revenues?
Create a variable b containing 60 random numbers : Write a Matlab script to create a variable B containing 60 random numbers from 0 to 2. Next using a WHILE loop go through all 60 numbers and count the number of values of B that are below 1.4. Store this answer in the variable COUNT.
Discuss the pros and cons of using the past performance : Discuss the pros and cons of using the past performance of stocks and bonds as a means of predicting future performance, and make at least one recommendation for making this technique more accurate.
What is the fund required rate of return : If the market's required rate of return is 11% and the risk-free rate is 5%, what is the fund's required rate of return?
Define what is the vapor pressure of the solution at 20 °c : A solution is made by mixing 45.0 mL of ethanol, C2H6O, and 55.0 mL of water. Assuming ideal behavior, what is the vapor pressure of the solution at 20 °C
At what rate did energy pass through an area : The intensity of an earthquake wave passing through the Earth is measured to be 2.5×106 at a distance of 55 from the source. At what rate did energy pass through an area of 3.0 at 1.0

Reviews

Write a Review

Electrical Engineering Questions & Answers

  Approximate the cutoff frequency of the opamp itself

b. If the opamp is configured as a non inverting amplifier with voltage gain of 100, what bandwidth will the circuit have c. With the same configuration (gain of 100), what is the maximum input for linear operation (limited by VCC)

  Determine the slope of the bh curve

For most low reluctance materials currently available and used in practical magnetic devices such as transformers, the slope of the BH curve may be always be considered constant over the possible range of operation of the device.

  Find the voltage vab from the top to the bottom surface

Two infinite sheets of charge lie parallel to each other, separatedby a distance d. The upper and lower sheets have surfacecharge densities ρsa andρsb[C/m2], respectively. find the voltage Vab from the top to the bottom surface.

  Find the phasors corresponding to the signals

Find the phasors corresponding to the following signals. (a) v(t) = 21 cos(4t-15o) V (b) i(t) =-8 sin(10t+70o) mA 2 (c) v(t) = 120 sin (10t -50o ) V (d) i(t) = -60cos(30t +10o) mA

  What is primary source of distortion with class b amplifier

What is the primary source of distortion with a Class B amplifier. What are some ways the distortion can be minimized and discuss the tradeoffs that exist when implementing these distortion minimizing methods.

  Find input resistance of each dipole neglect self reactance

A two-element array made of two λ/2 side by side dipoles with spacing equal to .125 λ , the two elements are fed by currents equal in magnitude but having a phase difference such that : I2=I1 e(j.75π)

  Determine the length of the stub length

Using a shorted stub to match load, what is the lenght of the line where the normalized input Y is 1 + jb . If the characteristic impedance of the shorted line is 40 ohms, what is the length of the stub length.

  What is the average kinetic energy of each type of molecule

A cylinder contains a mixture of helium and argon gas in equilibrium at a temperature of 152°C. (a) What is the average kinetic energy of each type of molecule. J/molecule (b) What is the rms speed of each type of molecule.

  What is the ratio of the torque produced by the force

The steering wheel of a car has a radius of 0.11 m, while the steering wheel of a truck has a radius of 0.28 m. The same force is applied in the same direction to each. What is the ratio of the torque produced by this force

  Write a machine language program to add the numbers

Assume there are five numbers stored in locations 20 to 24. Write a machine language program to add these numbers and store the result in location 25.

  How can we increase the data rate in a digital signal

1. What is the effect of increasing the quantization levels on the quantization error in a PCM signal 2. How can we increase the data rate in a digital signal

  Determine the average-real power that must be supplied

An industrial load consumes 88 kW at a power factor of 0.707 lagging from a 480 Vrms line. The transmission line resistance (Rline) from the power company's transformer to the plant is 0.08 Ohms.

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