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/35

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.

36 Terms

1
New cards

Can MATLAB print both text and variables?

نعم

2
New cards

Can the input command accept strings?

نعم

3
New cards

Does disp print the variable name?

لا، يطبع القيمة فقط

4
New cards

Give an example of string input usage.

إدخال اسم القسم كنص

5
New cards

How can text and variable output be combined?

باستخدام disp لأكثر من سطر

6
New cards

How can you increase printed precision?

بزيادة عدد الأرقام بعد الفاصلة

7
New cards

How do you accept string input in MATLAB?

باستخدام الصيغة input(prompt,'s')

8
New cards

How do you control decimal precision in fprintf?

باستخدام الصيغة %w.df

9
New cards

How does fprintf differ from disp?

fprintf يسمح بتنسيق الإخراج بدقة

10
New cards

How does MATLAB interact with the user?

من خلال أوامر الإدخال والإخراج

11
New cards

What command allows formatted output in MATLAB?

الأمر fprintf

12
New cards

What command is used for user input in MATLAB?

الأمر input

13
New cards

What command is used to display output in MATLAB?

الأمر disp

14
New cards

What does \n mean in fprintf?

الانتقال إلى سطر جديد

15
New cards

What does %1.4f mean?

رقم عشري مع رقم واحد قبل الفاصلة و4 أرقام بعدها

16
New cards

What does %2.4e represent?

تمثيل علمي بأربعة أرقام عشرية

17
New cards

What does %f represent in fprintf?

أعداد عشرية (floating point)

18
New cards

What does %i represent in fprintf?

أعداد صحيحة موجبة وسالبة

19
New cards

What does disp print?

يطبع النص أو قيمة المتغير فقط

20
New cards

What does fprintf('%1.4f',pi) display?

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

21
New cards

What does the 's' option in input mean?

يعني أن الإدخال سيكون نصياً (string)

22
New cards

What format symbol is used for engineering notation?

%e

23
New cards

What happens when input(prompt) is used?

يطلب من المستخدم إدخال قيمة ويتم تخزينها

24
New cards

What is basic input in MATLAB?

هو إدخال البيانات من المستخدم إلى البرنامج

25
New cards

What is basic output in MATLAB?

طباعة البيانات أو الرسائل في نافذة الأوامر

26
New cards

What is engineering notation?

طريقة عرض الأرقام باستخدام الصيغة العلمية

27
New cards

What is formatted output?

إخراج يسمح بإدراج المتغيرات داخل النص

28
New cards

What is the general syntax of the input command?

x = input(prompt)

29
New cards

What is the prompt in the input command?

نص يظهر للمستخدم في نافذة الأوامر

30
New cards

What is the syntax of the disp command?

disp(prompt)

31
New cards

What symbol is used for formatting in fprintf?

الرمز %

32
New cards

When should fprintf be used?

عند الحاجة لإخراج منسق ودقيق

33
New cards

Where does fprintf come from conceptually?

من لغة C/C++

34
New cards

Where is the user input stored?

يتم تخزينه في متغير

35
New cards

Why is \n important?

لتنظيم الإخراج في عدة أسطر

36
New cards

Why is disp(x) useful?

لأنه يطبع قيمة المتغير بدون x =