Lecture 1
Lecture 1
Exponential Functions
: العمليات الحسابية
plotting commands ايعازات الرسم
plot(y) Creates a line plot of the vector Y against its indices.
plot
Plot(x,y) Plots the set of points (X, Y), where X and Y are row
vectors.
title title (‘text’) Adds a title to the top of the current axes.
legend legend (‘string1’, Displays a legend in the current axes using the specified
‘string2’,…) strings to label each set of
data.
text text( x , y , 'string ') Use text to place character strings at specified locations.
fplot fplot ('f',[xmin , Graphs the explicit function y = f (x) in the specified range
xmax]) of variation for x.
Vectors المتجهات
هي عبارة عن مصفوفة بسيطة ذات بعد واحد سواء اكانت صف واحد او عمود واحد كل ما عليك
عليك أن تبدأ بقوس يساري( [ ) ثم تدخل القيم المطلوبة مفصولةMATLAB إلنشاء مصفوفة في لغة
-: بفراغ أو) فارزة ( ثم أغالق المصفوفة بقوس يميني( ] ) الحظ االمثلة التالية
Ex:-
>>A = [3 5 7 4 9 -1.1 -1.5]
Ex:-
>>A = [3,5,7,4,9, -1.1,-1.5]