Write a function in matlab to determine the a matrix

Assignment Help MATLAB Programming
Reference no: EM133289867

Question 1:

The following figure 1 shows a circuit of N number of loops with series resistance (Rs1,Rs2, ...., Rsn) and parallel resistance (Rp1,Rp2,... . , Rpn).

Write a function in MATLAB to determine the A matrix for 5 loops. Once the function is scripted, write a separate MATLAB code to call the A matrix from the function and determine the nodal voltage at each point.  Given: 

Series Resistance (Rs) = 4Ω; All the series resistances are of equal value.

Parallel Resistance (Rp) = 6Ω; All the parallel resistances are of equal value.

Reference Voltage (Vref) = 30V. 

1316_Circuit.jpg

Figure 1: A circuit with N number of loops

Question 2: 

Write a function in MATLAB code to calculate the probability of getting each number of a dice by throwing it N number of times. The number observed would be decided by generating a random number, such that:

If the random number chosen is 

a)      between 0-0.2, then number observed is 1.

b)      between 0.2-0.4, then number observed is 2.

c)       between 0.4-0.5, then number observed is 3.

d)      between 0.5-0.7, then number observed is 4.

e)      between 0.7-0.9, then number observed is 5.

f)       between 0.9-1.0, then number observed is 6. 

The number of throws considered are:

1.      1000 times

2.      100000 times

3.      10000000 times

i) Once the function is scripted, created a separate script in MATLAB to call the function and determine the probability of each number. The input argument to the function would be Number of throws and the output argument would be probability of each number.  

ii) Is the sum of the probabilities equal to one? 

Question 3:

Given a DTMF signal, where the frequency of the signal will be decided on the number typed between 09, the total period of the signal is 1 second. Create a function first to call any number between 0-9 and generate its two frequencies. 

Create a separate MATLAB script to call the function to generate frequencies of any number. The amplitude of the signal is 100, such that the signal will be on for certain intervals and off for the remaining period. The signal is on for the following duration:

i. 0.4 second  

ii. 0.6 second

iii. 0.8 second

Generate and plot noise with mean 0 and variance 1 and explain the signal plot you received in frequency domain.

Question 4:

Determine the value of x when the following functions are zero:

a. f(x) = x2 + 4x - 2

b. f(x) = 3x2 + 5x - 10

c. f(x) = 5x - 1

1. Write a flow-chart for the process.

2. Take an appropriate step-size.

3. Determine the number of iterations and the time taken for the following tolerance value:

i) 0.1

ii) 0.01

iii) 0.001

4. What is the percentage difference of x values obtained from ii) and iii) with respect to i).

Verified Expert

The Assignment is based on Matlab coding. There are 4 questions. Q1 consists of an electrical circuit in which we have to find the voltage at every node using coding and function. Similarly questions 2,3 and 4 are also based on matlab coding.

Reference no: EM133289867

Questions Cloud

Describe the structure of skin appendages present : Describe how the structure of skin appendages present at your chosen location is adapted for its given function.
Describe the normal process of osteogenesis for compact : Describe the normal process of osteogenesis for compact and spongy bone using the three different types of bone cells and their functions.
Responsible for Surface mobility : At what point is the MOS transistor deemed nonconductive? Which factor is responsible for the Surface mobility?
What is the design of questionnaire : What should the universal census cover? What is the design of the questionnaire? Do they include the planning stage?
Write a function in matlab to determine the a matrix : Write a function in MATLAB to determine the A matrix for 5 loops. Once the function is scripted, write a separate MATLAB code to call the A matrix
Why is advantageous to have baroreceptors in the aortic arch : Why is it advantageous to have baroreceptors in the aortic arch and carotid sinus rather than in some other location?
Thinking about standard deviation : Thinking about Standard Deviation. Give a hypothetical (or real) example to share with the class to highlight the importance of variability within a data set.
Acme company manufactures widgets : The Acme Company manufactures widgets. The distribution of widget weights is bell-shaped. What percentage of the widget weights lie above 37 ?
Discuss the cells of the immune system : Discuss the cells of the immune system, how they function, and their relationship with the lymphatic system.

Reviews

len3289867

12/22/2022 9:54:10 PM

MATLAB Electrical engineering assignment Also make sure comment every line on the code please Because It esay to understand code . So when you write a function Could you send it in separate .m file Question 1-3 has function with them For example: when you write code for question 1 in one script, and the function of question1 in a separate script please Same with question 2 and 3 and 4 .

Write a Review

MATLAB Programming Questions & Answers

  Matlab code to create the global stiffness matrix

Write a MATLAB code to create the global stiffness matrix for a problem with 6 unconstrained degrees of freedom for any linear elastic two dimensional trusses.

  Determine the level of absolute approximate relative error

2006ENG Numerical and Data Analysis. Convert the equation into f(T) = 0 when cp of 1.1kJ/kgK. In our MATLAB program, develop a plot of f(T) versus a range of T = 0 to 1200 K. MATLAB. On the axes, put proper labelling.

  Write the matlab code to create a 1x3 vector

Write the MATLAB code to create a 1x3 vector containing the elements [1,2,3]. Additionally, write the MATLAB code to create a 3x1 vector with the same elements.

  How does the interpolated function look compared

You must plot the interpolated function using either MATLAB or Excel. How does the interpolated function look compared with the actual datapoints?

  Programming application that can be written in mat lab

Chose topic in programming application that can be written in Mat Lab code

  Develop a routine to integrate the governing equations

Develop a routine to integrate the governing equations from the left end to the right end using generalized trapezoidal rule to do the integration numerically.

  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.

  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)

  Compute and plot 4 mean temperature profiles

Generate by measdata.m an array A withsize (365,24), containing temperature measurements for an entire year [1 January,..., 31 December], 24 hours a day [00.00h,...,23.00h].

  Compare the interpolated values

Write a Matlab script using the bilinear interpolation method to interpolate points in the domain - Visualize the function and the interpolated values

  Write program which creates a 2D map of robots environment

Implementing a simple wandering behaviour has been created for you - use this as your starting point. You may only use the robot's odometer and sonar sensors

  How spectrograms can be used in non-stationary signals

Use calculations and/or your conceptual understanding of spectra to predict what you'd expect the spectrum of this signal to look like. Confirm this hypothesis by again using fft() in MATLAB to plot the actual spectrum. If MATLAB differs from your..

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