《MATLAB及其工程应用》第5讲.pptVIP

  • 3
  • 0
  • 约1.97千字
  • 约 15页
  • 2020-04-21 发布于湖北
  • 举报
MATLAB Its Applications In Engineering 李清都 副教授 liqd@cqupt.edu.cn Lect. 5: Branch Statement Top-down Design Flow More complicated control statements To solve complicated problems, you have to write more complicated programs. branching looping Relational operators == ~= = = Good Programming practice Always use parentheses to indicate the order 7+3 2+11 (7+3) (2+11) What is the result? a = 0; b = sin(pi); c = (a == b); Logical operators | xor ~ Hierarchy of operations Arithmetic operators Relational operators (from left to right) ~ |

文档评论(0)

1亿VIP精品文档

相关文档