FOR
For i = 1:10
a(i) = 2*i
end
IF
If x>3
M = 1
Elseif x<1
M = 2
Else End
M = 5
We use = =, <, >, <=, >=, or ~ = to impose the conditions.
WHILE
While x > 3 M = 2
A = 3+B
x = M+0.5
End/Break
Biz oldingi kabi bir hil ramzlardan foydalanamiz.
Ehtiyot bo’ling 1.m. faylni ishga tushirishdan oldin siz u qaerda saqlanish yo’lini belgilashingiz kerak bo’ladi.MATLAB asosiy ko’rinishida "Mavjud papkani" izlang.
Nazorat savollari:
1.Matlab dasturi haqida asosiy tushunchalar
2.Matlab dasturining interfeyisi
3.Matlab dasturida soda arifmetik amallar bajarish
4.Matlab dasturida massivlar1>
Do'stlaringiz bilan baham: |