diff_months: 6

Matlab CW Basic and Programming

Flat 50% Off Order New Solution
Added on: 2023-11-05 07:11:24
Order Code:
Question Task Id: 0

Q1. Use your favourite manual method to solve the simultaneous equations

Screenshot_2-1699168263.jpg

Now use Matlab to solve the equations and compare your results (4 marks).

Q2. Find out what function polyfit does. A proximity probe is a sensor which measures the gap between its tip and a metallic surface. The sensitivity of the probe is defined as the increase in its output voltage per unit increase in gap and is measured in volts per mm. One such probe was calibrated by measuring the output voltage over a range of gaps, as shown in the following table.

gap

(mm)

0.50

1.00

1.50

2.00

2.50

3.00

3.50

4.00

4.50

5.00

Voltage (V)

0.15

1.00

2.49

3.80

5.49

6.80

8.40

9.70

11.49

14.14

Write a program to perform the following tasks: 

(a) Plot a labelled graph of voltage versus gap: the points on your graph should be  indicated by a cross (‘×’) and not joined by straight line segments. (3 marks) (b) Use function polyfit to fit a straight line through the data in (a). This straight line  should then be plotted onto the plot in (a). (4 marks) 

(c) Use the listed output Voltage as an input vector, outputs further a vector of the  consecutive voltage variations.  

Hint: e.g. for the input V=[0.15 1.00 2.49 3.80 ……], will output delV=[0.85 1.49 1.31 ……]. Recall what end does; or you could use the function length instead (3 marks). 

Q3. Use Matlab to develop a simple program analysing a right triangle truss shown below.  (16 marks)

Screenshot_3-1699168360.jpg

CIVL12201 Tools for Civil Engineers 1 Jack Wu/ October 2023 

A right triangular truss has been pin-joined on a wall at joints 1 and 2. The vertex 3 of the truss is hinged. A vertical upwards load P, as shown in Fig Q3, is applied at the vertex. 

You are required to edit a program accommodating all required input parameters, and output axial forces F13 and F23 in members of 13 and 23, respectively, after the analysis is carried out. Here Fij means internal axial force in the member joining joints i and j, with its sign  convention: tension (+) and compression (-). 

Since axial forces in the truss members can be calculated by using any standard method, you  can consult "Structures 1" lecture notes or any Structural and Stress analysis textbooks for  further details.  

After being received the appropriate inputs, the Matlab program which should include the  given parameters (l, h, and P as shown in Fig Q3) will generate a graph showing the internal  axial force F13. 

  • The program should have a facility to input the data interactively i.e. prompt the user to input the member lengths, the applied load (i.e. handle any lengths of the truss members, any concentrated loading at joint 3) 
  • Matlab figures for the internal force F13 generated by your program should be titled and  labelled appropriately.

Are you struggling to keep up with the demands of your academic journey? Don't worry, we've got your back! Exam Question Bank is your trusted partner in achieving academic excellence for all kind of technical and non-technical subjects. Our comprehensive range of academic services is designed to cater to students at every level. Whether you're a high school student, a college undergraduate, or pursuing advanced studies, we have the expertise and resources to support you.

To connect with expert and ask your query click here Exam Question Bank

  • Uploaded By : Ashish
  • Posted on : November 05th, 2023
  • Downloads : 0
  • Views : 150

Order New Solution

Can't find what you're looking for?

Whatsapp Tap to ChatGet instant assistance

Choose a Plan

Premium

80 USD
  • All in Gold, plus:
  • 30-minute live one-to-one session with an expert
    • Understanding Marking Rubric
    • Understanding task requirements
    • Structuring & Formatting
    • Referencing & Citing
Most
Popular

Gold

30 50 USD
  • Get the Full Used Solution
    (Solution is already submitted and 100% plagiarised.
    Can only be used for reference purposes)
Save 33%

Silver

20 USD
  • Journals
  • Peer-Reviewed Articles
  • Books
  • Various other Data Sources – ProQuest, Informit, Scopus, Academic Search Complete, EBSCO, Exerpta Medica Database, and more