科學計算與Matlab筆記:第3章:Matlab程序流程控制

1. 順序結構程序 新建程序文件: >> edit f1.m A=[1,2,3;4,5,6]; B=[1,2;3,4;5,6]; C=A*B >> f1 C =     22    28     49    64 (1)數據輸入 A=input(提示信息,選項) >> A=input('Please input A:') Please input A:100 A =    100 (2)數據輸出
相關文章
相關標籤/搜索