matlab程序设计

matlab程序设计

matlab的关系操作符和逻辑操作符与C语言的一致,就不再做笔记

控制流

for 循环

一般形式:

1
2
3
for x=array
{commands}
end

while循环

1
2
3
while (expression)
{commands}
end

if-else-end结构:

1
2
3
if (expression)
{commands}
end
Donate
  • Copyright: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.

扫一扫,分享到微信

微信分享二维码
  • Copyrights © 2015-2023 dwx
  • Visitors: | Views:

请我喝杯咖啡吧~

支付宝
微信