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

  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