Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask MATLAB Expert

Assignment

Use MATLAB to solve each problem by writing script files; copy and paste the script file AND the results in the Command Windowand/or plot in the Figure Windowto a WORD document that has your name and section in the headers of each page and the page number in each footer. Edit the output to remove extra lines and empty spaces. The script files SHOULD have comments for easy readability; take a print out of the Word file andstaple before submission.

1. Plot the function y = 10(1-e-x/4) over the interval 0 £ x £xmax, using a while loop to determine the value of xmax such that y(xmax) = 9.8. The variable y represents force in Newtons, and the variable x represents time in seconds. Include title, grid, and axis labels.

2. A weight is supported by two cables anchored a distance D apart as shown.

746_A Weight.jpg

The cable length LAB is given, but the length LAC is to be selected. Each cable can support a maximum tension force equal to W. For the weight to remain stationary, the total horizontal force and the total vertical force must each be zero. This principle gives the equations

          -TAB cosq + TAC cos f = 0
           TAB sinq + TAC sin f = W

W can solve these equations for the tension forces TAB and TAC if we know the angles q and f. From the law of cosines

                                            θ = cos-1 [(D2 + L3AB - L2AC) / 2DLAB]
From the law of sines              Φ = sin-1 (LAB sinθ / LAC)

For the given values D = 6 feet, LAB = 3 feet, and W = 2000 pounds, use a loop in MATLAB to find LACmin, the shortest length LAC we can use without TAB or TAC exceeding 2000 pounds. Note that the largest LAC can be is 6.7 feet (which corresponds to q = 90°). Plot the tension forces TAB and TAC on the same graph versus LAC for LACmin£ LAC£ 6.7.

3. An ideal diode blocks the flow of current in the direction opposite that of the diode's arrow symbol. It can be used to make a half-wave rectifier as shown.

1501_Half-Wave Rectifier.jpg

For the ideal diode, the voltage vL across the load RL is given by

               vL = vSif  vS> 0
                   = 0      if  vS£ 0

For a non- ideal (silicon) diode, the voltage vL is given by

               vL = vS-0.6    if  vS> 0.6
                   = 0      if  vS£ 0.6

Suppose the supply voltage is vs(t) = 3e-t/3 sin(pt) volts, where time t is in seconds. Write a MATLAB program to plot the voltage  vL versus t for both ideal and non-ideal cases  and the voltage vS versus t for 0 £ t £ 10 on the same axes.

4. Write a user-defined MATLAB function that calculates a student's final grade in a course using the scores from three midterm exams, a final exam, and six homework assignments. The midterms are graded on a scale from 0 to 100, and are each 15% of the final grade. The final exam is graded on a scale from 0 to 100, and is 45% of the final grade. The six homework assignments are graded each on a scale from 0 to 10. The homework assignments together are 10% of the final grade.

For the function name and arguments use g=fgrade(R). The input argument R is a matrix in which the elements in each row are the grades of one student. The first six columns are the homework grades (numbers between 0 to 10), the next three columns are the midterm grades (numbers between 0 to 100), and the last column is the final grade (a number between 0 to 100). The output from the function, g, is a column vector with the final grades for the course. Each row has the final grade of the student with the final grades in the corresponding row of the matrix R. 

The function can be used to calculate the grades of any number of students. For one student matrix R has one row. Use the function in the following cases:

a) Use the Command Window to calculate the grade of one student with the following grades:

(8, 9, 6, 10, 9, 8, 76, 86, 91, 80).

b) Write a program in a script file. The program asks the user to enter the student's grades in an array (each student a row). The program then calculates the final grades by using the function fgrade. Run the script file to calculate the grades of the following four students:   

Student A:  8, 10, 6, 9,10,9, 91, 71, 81, 85.
Student B:  5, 5, 6, 1, 8, 6, 59, 72, 66, 59.
Student C:  6, 8, 10, 4, 5, 9, 55, 65, 75, 78.
Student D:  7, 7, 8, 8, 9, 8, 83, 82, 81, 84.

MATLAB, Engineering

  • Category:- MATLAB
  • Reference No.:- M92258893
  • Price:- $55

Priced at Now at $55, Verified Solution

Have any Question?


Related Questions in MATLAB

Question 1 manipulate spectral imagehyperspectral images

Question 1. Manipulate spectral image Hyperspectral images can be seen as a generalisation of normal colour images such as RGB images. In a normal RGB colour image, there are 3 channels, i.e. channels for red colour, gre ...

Question a safe prime is a prime number that can be written

Question : A safe prime is a prime number that can be written in the form 2p + 1 where p is also a prime number. Write a MATLAB script file that finds and displays all safe primes between 1 and 1000.

Suppose that a student has the option of enrolling for a

Suppose that a student has the option of enrolling for a single elective during a term. The student must select a course from a limited list of options: "English, " "History, " "Biology, " "Computer, " or "Math." Constru ...

Assignment -we have daily gridded rainfall data of 40 years

Assignment - We have daily gridded rainfall data of 40 years and structure of the dataset is like below; Lat = [6.5:0.25:38.5]; Lon = [66.5:0.25:100]; Rainfall (135x129x365x40) (Lon, Lat, days, years). Now, we looking fo ...

Assignmentafter the success of your robo-advice venture you

Assignment After the success of your robo-advice venture you decide to explore alternative sources of profitability for your company. You realize that Australian investors are often forced to chose between expensive acti ...

Suppose that you have used some concept learning algorithm

Suppose that you have used some concept learning algorithm to learn a hypothesis h1 from some training data. You are interested in knowing the accuracy that the hypothesis can be expected to achieve on the underlying pop ...

Lab assignment - matlab matrix relationallogical operators

Lab Assignment - MATLAB Matrix, Relational/Logical Operators and Plotting This laboratory exercise/assignment will involve you 1) practicing multiplication operators in MATLAB; 2) practicing relational and logical operat ...

Assignment details -need to write a code for connecting

Assignment Details - Need to write a code for connecting segments (Lines) a special case of TSP. The problem is to connect lines in 2d/ 3d space with path obstructions. Can you help me write the code for this? Hope you m ...

Assignment matlab programmingusing appropriate matlab

Assignment: MatLab Programming Using appropriate MatLab syntax, write the code required to analyse and display the data as per the problem description. The order of the MatLab Program should be as follows: Variables and ...

Assignment - matlab programmingusing appropriate matlab

Assignment - MatLab Programming Using appropriate MatLab syntax, write the code required to analyse and display the data as per the problem description. The order of the MatLab Program should be as follows: Variables and ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As