BASICS MATLAB

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall with Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/50

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No study sessions yet.

51 Terms

1
New cards

What is the MATLAB environment?

مجموعة النوافذ والأدوات المستخدمة للعمل داخل برنامج MATLAB

2
New cards

What is the Command Window used for?

تُستخدم لكتابة الأوامر وتشغيل السكربتات وتقييم الدوال

3
New cards

What does the Workspace window show?

يعرض المتغيرات المخزنة حالياً في MATLAB

4
New cards

What is the Command History window?

يعرض قائمة بالأوامر التي تم إدخالها سابقاً

5
New cards

What is the Current Folder window?

يعرض الملفات الموجودة في مجلد العمل الحالي

6
New cards

What is the Script Editor used for?

يُستخدم لكتابة وتحرير وتشغيل ملفات السكربت

7
New cards

Where can all MATLAB windows be found?

HOME → ENVIRONMENT → Layout

8
New cards

What symbol is used to write comments in MATLAB?

الرمز %

9
New cards

What happens to text after a % symbol?

يتم تجاهله من قبل MATLAB

10
New cards

What does a semicolon (;) do in MATLAB?

يمنع ظهور الناتج في نافذة الأوامر

11
New cards

How does MATLAB behave like a calculator?

يمكنه إجراء العمليات الحسابية

12
New cards

What command clears the Command Window?

الأمر clc

13
New cards

What command clears all variables from the workspace?

الأمر clear all

14
New cards

How are variables created in MATLAB?

يتم إنشاؤها باستخدام جملة إسناد

15
New cards

What is the syntax for variable assignment?

اسم المتغير = القيمة

16
New cards

Why is 3 = x invalid in MATLAB?

لأن اسم المتغير يجب أن يكون في الجهة اليسرى

17
New cards

Can variable values be changed after assignment?

نعم، يمكن تغيير قيمة المتغير في أي وقت

18
New cards

How can variables be used in expressions?

باستخدامها داخل العمليات الحسابية

19
New cards

How can a variable be defined using another variable?

باستخدام متغير آخر في جملة الإسناد

20
New cards

What are numerical variables?

متغيرات تخزن قيماً عددية

21
New cards

What are string variables?

متغيرات تخزن نصوصاً باستخدام علامات اقتباس مفردة

22
New cards

How are strings written in MATLAB?

باستخدام علامة الاقتباس المفردة '

23
New cards

What are predefined variables in MATLAB?

متغيرات معرفة مسبقاً مثل pi و inf و i و NaN و ans

24
New cards

Can predefined variables be redefined?

نعم، ولكن ذلك قد يكون خطيراً

25
New cards

Why is redefining pi risky?

لأنه قد يؤدي إلى أخطاء في الحسابات الرياضية

26
New cards

What character must MATLAB variable names start with?

يجب أن تبدأ بحرف

27
New cards

What characters can variable names contain?

أحرف وأرقام والشرطة السفلية (_)

28
New cards

Can variable names contain spaces?

لا

29
New cards

Can MATLAB keywords be used as variable names?

لا، لأنها كلمات محجوزة

30
New cards

Why should function names not be used as variables?

لأنها قد تُعطل الدوال الجاهزة

31
New cards

What function calculates square roots?

الدالة sqrt

32
New cards

What function calculates absolute value?

الدالة abs

33
New cards

What function computes natural logarithms?

الدالة log

34
New cards

What unit do standard trigonometric functions use?

وحدة الراديان

35
New cards

What function calculates sine in degrees?

الدالة sind

36
New cards

Why is sind(90) equal to sin(pi/2)?

لأن الأولى تستخدم الدرجات والثانية تستخدم الراديان

37
New cards

What happens if a function name is used as a variable?

قد تظهر أخطاء لأن الدالة يتم استبدالها

38
New cards

How can a function be restored after overwriting it?

باستخدام الأمر clear مع اسم الدالة

39
New cards

What does the which command do?

يوضح ما إذا كان الاسم دالة أو متغيراً

40
New cards

How many decimals does MATLAB display by default?

أربعة منازل عشرية

41
New cards

What does format short do?

يعرض النتائج بأربعة أرقام عشرية

42
New cards

What does format long do?

يعرض النتائج حتى خمسة عشر رقماً

43
New cards

How do you return to the default format?

باستخدام الأمر format أو format short

44
New cards

What does the who command do?

يعرض أسماء المتغيرات في مساحة العمل

45
New cards

What does the whos command do?

يعرض المتغيرات مع أحجامها وأنواعها

46
New cards

How can help be accessed in MATLAB?

باستخدام الأمر doc أو علامة الاستفهام

47
New cards

What does help sin do?

يعرض شرح الدالة sin

48
New cards

What is a MATLAB script?

ملف يحتوي على مجموعة أوامر MATLAB

49
New cards

What is the file extension for MATLAB scripts?

الامتداد .m

50
New cards

How can a script be run from the Editor?

بالضغط على EDITOR ثم Run

51
New cards

How can a script be run from the Command Window?

بكتابة اسم السكربت أو باستخدام الأمر run