Using script file in MATLAB/OCTAVE

8 visualizaciones (últimos 30 días)
omar aljabri
omar aljabri el 15 de Mayo de 2021
Respondida: omar aljabri el 16 de Mayo de 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 comentarios
Jan
Jan el 16 de Mayo de 2021
Editada: Jan el 16 de Mayo de 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.
omar aljabri
omar aljabri el 16 de Mayo de 2021
Ok

Iniciar sesión para comentar.

Respuestas (1)

omar aljabri
omar aljabri el 16 de Mayo de 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

Categorías

Más información sobre Octave en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by