151 comp
Sheet#4
Sheet#4
B using MATLAB write the following:
1. program generate a row vector then print in reverse order
2. Generate 3 *3 matrix then print the diagonal element
3. Sort the following vector [ 55, 0, -1, 6, 0, -2, 4, -10]
4. Generate two vector with the same length but different element then calculate
5. Use MATLAB in the two different ways described below to plot function
y
6. Write a program determines the root of quadratic equation by calculates the
a. If D>0 displays “the equation has two real root”
b. If D<0 displays “the equation has no real root”
c. If D=0 displays “the equation has one real root”
For the following equation:
a.
b.
c.
d.
7. Write a program that determines the sum of the first m terms if the series:
8. A vector is given by x=[15 -6 0 8 -2 5 4 -10 0.5 3] print the sum of positive number
هذا الشيت جاااني في أيااام زحمة امتحانات ويحتاج للتفكير وليس لدي وقت والتسليم يوم الاربعاء الله يجزاكم الجنه ولكم اصدق الدعوات ارجو المساااعده