错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

MATLAB Flow Control Structures

  • Dingyü Xue,
  • Feng Pan

摘要

Interactive programming format is illustrated in the previous chapter, where sequential execution of the statements is demonstrated. The MATLAB mechanism runs the commands line by line. In real applications, sometimes the execution order of the commands may need to be controlled according to certain conditions. For instance, it may need to execute a piece of code repeatedly for a certain number of times. In this chapter, loop structures, conditional structures, switch structures and trial structures are presented. Vectorized programming style is demonstrated.