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

  Find y for a linear time-invariant continuous-time system

A linear time-invariant continuous-time system responds to the following inputs with the corresponding outputs:Ifx(t) = u(t), then y(t) = 2(1- e^-t)u(t) and if x(t) = cost,then y(t) = 1.414 cos(t - pi/4).

  What overall voltage gain results as measured from source

A 10-mV signal source having an internal resistance of 200 kO is connected to an amplifier for which the input resistance is 20 kO, the  open-circuit voltage gain is 2000 V/V, and the output resistance is 1 kO. The amplifier is connected in turn t..

  Determine the corediameter required for the fiber topermit

determine the corediameter required for the fiber topermit its operation over the wavelength range 1.48 to 1.60um. calculate the new fiber core diameter to enable single mode transmission at a wave length of 1.30um.

  Solve the model to find an expression for the output voltage

A certain boost converter is implemented with a MOSFET and a p-n diode. The MOSFET can be modeled as ideal, but the diode exhibits a substantial reverse-recovery process, with reverse recovery time tr and recovered charge Qr .

  Determine 1s complement addition and complement

Incremental Update. Typically, after every hop at least one packet header field (e.g., a packet's time-to-live field) needs to be overwritten. Because the checksum is a simple complement of a 1s complement sum, it turns out that when, for instance..

  Determine the sequence generated from the circuit

Draw a 4-bit Linear Feedback Shift Register using a final transition/excitation equation of Q3+ = D3 = Q1 Q0. Determine the sequence generated from this circuit. How many states does the circuit cycle through when given an initial state of 0001

  Find the excitation equation for the d flip-flop

A sequential circuit has two inputs (A and B) and contains one D flip-flop that has only D and clock inputs. If A = B the flip-flop is unchanged, otherwise the flipflop is complemented. Find the excitation equation for the D flip-flop

  Explain an electric heater is connected to a constant

The Problem: An Electric Heater is connected to a constant 250-V source and absorbs 1000 W. Subsequently, this heater is connected to a constant 210 V source.

  Determine the density function py y in terms of p and t

Two statistically dependent random variables x1 and x2 are applied at the inputs to a threshold detector , the output from which is equal to the number of inputs that exceed the threshold T. Thus, y = 0, 1 or 2.

  Find b1 and angle that b1 makes with normal to interface

a) Assume B1 = ax2 - ay10(mT), find B2 and the angle that B2 makes with the interface. b) Assume B2 = ax10 +ay2(mT), find B1 and the angle that B1 makes with the normal to the interface.

  Determine what is the probability of false alarm

If an aircraft is present in a certain area,a radar correctly registers its presence with probability 0.99. If its is not present,the radar falsely registers an aircraft presence with probability 0.10. We assume that an aircraft is present with pr..

  Determine equivalent inductance of the system at terminals

The accompanying schematics each show two inductors with coupling but with different dot markings. For each of the two systems, determine the equivalent inductance of the system at terminals 1-1' by combining inductances.

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