حل واجبات الجامعة العربية المفتوحة whats : 00966542495275

أهلا وسهلا بك إلى منتدي حل واجبات الجامعة العربية المفتوحة || 00966542495275
 
الرئيسيةاليوميةس .و .جبحـثالأعضاءالمجموعاتالتسجيلدخول

شاطر | 
 

 حل واجب M106 MATLAB programming

اذهب الى الأسفل 
كاتب الموضوعرسالة
whatsapp::00966542495275
Admin


المساهمات : 1540
تاريخ التسجيل : 03/02/2012

مُساهمةموضوع: حل واجب M106 MATLAB programming    الإثنين أبريل 23, 2018 6:40 am

Course Code: M106
Course Title: Introduction to MATLAB programming
Tutor Marked Assignment
Cut-Off Date: TBA Total Marks: 40
Contents
Question 1: 12 marks
Question 2: 10 marks
Question 3: 8 marks
Question 4: 10 marks

This TMA covers chapters 1, 2, 3, 4 and 5. It consists of four questions. Please solve all questions. You should give the details of your solutions and not just the final results. You must submit your Matlab code well commented as .m Matlab files. Also you must submit all figures and relevant plots as part of your work as a single file.
Plagiarism Warning:
As per AOU rules and regulations, all students are required to submit their own TMA work and avoid plagiarism. The AOU has implemented sophisticated techniques for plagiarism detection. You must provide all references in case you use and quote another person's work in your TMA. You will be penalized for any act of plagiarism as per the AOU's rules and regulations.

Declaration of No Plagiarism by Student (to be signed and submitted by student with TMA work):
I hereby declare that this submitted TMA work is a result of my own efforts and I have not plagiarized any other person's work. I have provided all references of information that I have used and quoted in my TMA work.
Name of Student:
Signature:
Date:

Question 1: [12 marks]

The i-v (current-voltage) relation of a non-linear electrical device is given by
i(t)=0.1(e^0.2v(t) -1)
where v(t) = sin3t
and the instantaneous power p(t) = v(t)i(t)

Create three graphs on one figure for the current, voltage, and power variation in this device from t0=0 to t1=10 s.
Include appropriate labels, title, and gridlines



Question 2: [10 marks]
Write a program that prompts the user for endpoints (x1, y1) and (x2, y2) of five (5) line segments, and calculates the midpoint of each line segment, which is the point (xm, ym). The coordinates of the midpoint are found
x_m=1/2(x_1+x_2)
and
y_m=1/2(y_1+y_2)

The code should be organised as follows:

Write a getCoords() function that prompts the user for the x- and y-coordinates for the two endpoints for the five line segments returns it as 5-by-4 matrix of points. (Do NOT use loops) (2 mark)

Write a findmid() function that calculates the x- and the y-coordinates of the midpoints and returns it as 5-by-2 matrix of midpoints. (Do NOT use loops) (3 mark)

Write a print() function that prints the calculated midpoints. (Do NOT use loops) (2 marks)

Write a main script to do the following: (3 marks)

Call getCoords() function to get the endpoints from the user.
Call findmid() function to find the midpoints.
Call print() function to print the midpoints.





Question 3: [8 marks]
Write a Matlab program reads a sentence then prints each word on a separate line after converting its characters to uppercase.
(Hint: use the while... loop and read the Matlab documentation about the function strtok)

Question 4: [10 marks]
Write a nested for loops to print the following pattern.
1
121
12321
1234321
123454321 (6 marks)

Write a function that finds the comment elements two lists, e.g. [23, 11, 70], [11, 2, 3] → [11]. (Do not use the ready Matlab function intersect, you can read the Matlab documentation about ismember() and unique() functions) (4 marks)



“End of Questions”

_________________

لتحميل ملف حل الواجب .docx  من خلال التسجيل في المنتدى أو التعريف بنفسك لمعاينة هذا الملف  


خدمات مجانية – حلول واجبات الجامعة العربية المفتوحة - حل واجب tma tma01
لجميع تخصصات الجامعة ولجميع فروع الجامعة
حلول واجبات – مشاريع تخرج – ملخصات هامة
http://solution.123.st
whatsapp::00966542495275
whatsapp::00966542495275

whatsapp::00966542495275
smsm.hamdy66@yahoo.com
حلول مضمونة وغير مكررة وغير متشابهة لجميع واجبات الجامعة
متوفرمدرسين ومدرسات لجميع المواد والتخصصات
KSA-Kuwait-Bahrain-Oman-Jordon-Lebanon-Egypt
الكويت-البحرين-عمان-الأردن-السعودية-لبنان-مصر
الرياض-الدمام-جدة-الأحساء-المدينة المنورة-جده-حائل-بيروت-المنامة-القاهرة-مسقط
pg ,h[fhj hg[hlum hguvfdm hgltj,pm - pg,g ,h[fhj hg[hlum hguvfdmhgltj,pm
http://solution.123.st
الرجوع الى أعلى الصفحة اذهب الى الأسفل
معاينة صفحة البيانات الشخصي للعضو http://solution.123.st متصل
 
حل واجب M106 MATLAB programming
الرجوع الى أعلى الصفحة 
صفحة 1 من اصل 1

صلاحيات هذا المنتدى:لاتستطيع الرد على المواضيع في هذا المنتدى
حل واجبات الجامعة العربية المفتوحة whats : 00966542495275 :: حل واجبات الجامعة العربية المفتوحة 2018-2017 :: حل واجبات الجامعه العربيه المفتوحه 2017/2018-
انتقل الى: