Using script file in MATLAB/OCTAVE

8 views (last 30 days)
omar aljabri
omar aljabri on 15 May 2021
Answered: omar aljabri on 16 May 2021
Using script file in MATLAB/OCTAVE, a) Sketch the graph of ๐‘ฆ = ๐‘ฅ 3 b) Sketch the graph of ๐‘ฆ = 2๐‘๐‘œ๐‘ 3๐‘ฅ c) Sketch ๐‘ฆ = ๐‘™๐‘›๐‘ฅ ๐‘Ž๐‘›๐‘‘ ๐‘ฆ = ๐‘’ ๐‘ฅ on the same graph.
  7 Comments
Jan
Jan on 16 May 2021
Edited: Jan on 16 May 2021
Repeating the question of the homework is not useful. Let me repeat:
Please post, what you have tried so far and ask a specific question.
The forum will not solve your homework, but we like to assist you in solving Matlab problems.

Sign in to comment.

Answers (1)

omar aljabri
omar aljabri on 16 May 2021
Aims:
The aims of this coursework are: โ€ข To introduce computer aided software for numerical computations and in particular familiarizing with the computer aided software, basic commands through the Command window and output through the Graph window.
Module learning outcomes assessed by this coursework: On successful completion of this assignment, students will be expected, at threshold level, to be able to: LO:7 Demonstrate knowledge and ability in simulating engineering and mathematical problems.
โ€ข Task:
1. Using script file in MATLAB/OCTAVE, a) Sketch the graph of ๐‘ฆ = ๐‘ฅ3 b) Sketch the graph of ๐‘ฆ = 2๐‘๐‘œ๐‘ 3๐‘ฅ c) Sketch ๐‘ฆ = ๐‘™๐‘›๐‘ฅ ๐‘Ž๐‘›๐‘‘ ๐‘ฆ = ๐‘’๐‘ฅ on the same graph. [8 Marks]
2. Using script file in MATLAB/OCTAVE to, a) Find the values a, b and c of the upward velocity of rocket approximated by polynomial as ๐‘ฃ(๐‘ก) = ๐‘Ž๐‘ก2 + ๐‘๐‘ฅ + ๐‘, 5 โ‰ค ๐‘ก โ‰ค 12 Where velocity of the rocket is given at three different times on the following table. Time, t Velocity, v (s) (m/s) 5 106.8 8 177.2 12 279.2
b) Compute ๐ผ1, ๐ผ2,๐ผ3 after forming system of equations for the following circuit:
[8 Marks]
3. Using script file in MATLAB/OCTAVE to,
๐œ‹
a) Evaluate โˆซ ๐‘ฅ ๐‘‘๐‘ฅ
b) Evaluate ๐‘‘๐‘ฆ ๐‘‘๐‘ฅ
c) Evaluate ๐‘ ๐‘ฅ๐‘ฆ๐‘ง ๐‘‘๐‘ง๐‘‘๐‘ฆ๐‘‘๐‘ฅ
d) Find the volume under the surface ๐‘ง = ๐‘ฅ2๐‘ฆ โˆ’ ๐‘ฅ ๐‘ฆ2 over the rectangle bounded by the lines ๐‘ฅ = 4 0 ๐‘ก๐‘œ ๐‘ฅ = 150๐‘ ๐‘Ž๐‘›๐‘‘ ๐‘ฆ = 0 ๐‘ก๐‘œ ๐‘ฆ = 150๐‘
where p is the average of digit studentโ€™s ID [Example: If 123456 is studentโ€™s ID then ๐‘ =
= 3.5]
[8 Marks]
4. (i) Using script file MATLAB/OCTAVE, Compute the following: a) ๐ต๐ด b) Determinant of ๐ด๐‘‡ c) ๐‘๐‘œ๐‘“๐‘Ž๐‘๐‘ก๐‘œ๐‘Ÿ๐‘ (๐ต) Where 3 2 0 0 5 2 1 1 โˆ’3 2 4 7 0 1 0 0 5 8 4 1 ๐ด = 1 3 1 0 0 , ๐ต = 0 0 2 10 2 1 0 3 8 5 0 0 0 4 5 [0 1 0 1 2] [0 0 0 8 1] (ii) Write a program without using function to compute addition of two matrices (size of matrix will be 2x2). [8 Marks]
5. Using script file MATLAB/OCTAVE, find the area of the triangle determined by the points ๐‘ƒ1(2,2,0),๐‘ƒ2(โˆ’1,0,2),๐‘ƒ3(0,4,3)
[8 Marks]
6. With the use of script file in MATLAB/OCTAVE, a) Find ๐‘ฆ2๐๐๐’™๐Ÿ๐’–๐Ÿ โˆ’ 2๐‘ฆ ๐๐’™๐๐’š๐๐Ÿ๐’– + ๐๐๐’š๐Ÿ๐’–๐Ÿ โˆ’ ๐๐’–๐๐’™ where ๐’– = ๐’™๐Ÿ‘ โˆ’ ๐Ÿ๐’™๐Ÿ + ๐Ÿ๐’š๐Ÿ‘ โˆ’ ๐Ÿ”๐’™๐’š + ๐’š
b) Use the initial condition y(Third digit of your SID*)= average of all your SID* to find the particular solution of ๐‘‘๐‘ฆ 2 + 2๐‘ฅ4 = 0 [8 Marks] โˆ’2๐‘ฆ+ ๐‘ฅ ๐‘‘๐‘ฅ * SID: Student Identification Number. [Example: If 123456 is studentโ€™s ID then third digit is 3 and ๐ด๐‘ฃ๐‘’๐‘Ÿ๐‘Ž๐‘”๐‘’ = = 3.5] 7. Write a program to display your name , ID and average of your ID digits. [2 Marks] Background: Matrices, Vectors, Multivaiable, Multiple integral, differential eqution.
Equipment: Computer.
Procedure: This course work would be done in computer aided software.
โ€ƒ
| 8

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!