用MATLAB设计程式-kuas.edu.tw.ppt

用MATLAB设计程式-kuas.edu.tw.ppt

第4章 用MATLAB設計程式 Programming with MATLAB ;What is programming?;4.1 Relational operators 關係運算子;?x=2 x = 2 ?y=5 y = 5 ?z=xy z = 1 ?u=x==y u = 0 ;優先順序;;4.2 Logical operators and Functions 邏輯運算子與函式;Boolean operator;?x=[6,3,9]; ?y=[14,2,9]; ?z=~xy z = 0 0 0 ?z=(~x)y z = 0 0 0 ?z=~(xy) z = 1 0 1 ?z=(x=y) z = 1 0 1;or;;;Truth_table;;;;Why use matlab? It seems just be finished by ur eyes!;Ex.4.2-1;Self testing;4.3 條件敘述式 Conditional Statements;if statement;if statement;Program documentation, charts, and pseudocode (p.185);;;Flow c

文档评论(0)

1亿VIP精品文档

相关文档