English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
所有分類

A為3*3矩陣(matrix),A=[b1 b2 b3;c1 c2 c3;d1 d2 d3],裏面的元素為b1 b2 b3;c1 c2 c3;d1 d2 d3,而b1 b2 b3;c1 c2 c3;d1 d2 d3各有9個值如下:
b1=1,2,3,4,5,6,7,8,9
b2=1,2,3,4,5,6,7,8,9
b3=1,2,3,4,5,6,7,8,9
c1=1,2,3,4,5,6,7,8,9
c2=1,2,3,4,5,6,7,8,9
c3=1,2,3,4,5,6,7,8,9
d1=1,2,3,4,5,6,7,8,9
d2=1,2,3,4,5,6,7,8,9
d3=1,2,3,4,5,6,7,8,9
請問要如何用MATLAB寫一程式呈現A

2007-03-15 19:03:56 · 3 個解答 · 發問者 ? 2 in 電腦與網際網路 程式設計

3 個解答

先定義 b1, b2, b3, c1, c2, c3, d1, d2, d3, 再定義 A 就可以。
b1=[1,2,3,4,5,6,7,8,9];
b2=[1,2,3,4,5,6,7,8,9];
b3=[1,2,3,4,5,6,7,8,9];
c1=[1,2,3,4,5,6,7,8,9];
c2=[1,2,3,4,5,6,7,8,9];
c3=[1,2,3,4,5,6,7,8,9];
d1=[1,2,3,4,5,6,7,8,9];
d2=[1,2,3,4,5,6,7,8,9];
d3=[1,2,3,4,5,6,7,8,9];
A=[b1 b2 b3; c1 c2 c3; d1 d2 d3]

2007-03-16 01:57:15 · answer #1 · answered by ? 7 · 0 0

用cell陣列
A={};
A{1,1}=[1,2,3,4,5,6,7,8,9]
A{1,2}=[1,2,3,4,5,6,7,8,9]
A{1,3}=[1,2,3,4,5,6,7,8,9]
A{2,1}=[1,2,3,4,5,6,7,8,9]
A{2,2}=[1,2,3,4,5,6,7,8,9]
A{2,3}=[1,2,3,4,5,6,7,8,9]
A{3,1}=[1,2,3,4,5,6,7,8,9]
A{3,2}=[1,2,3,4,5,6,7,8,9]
A{3,3}=[1,2,3,4,5,6,7,8,9]

2007-03-25 13:01:35 · answer #2 · answered by ? 6 · 0 0

不知道我沒學過耶
去問別人或教授!!
我可不知道ㄛ
不然我也沒別的辦法

2007-03-22 16:27:35 · answer #3 · answered by 廣爺 1 · 0 0

fedest.com, questions and answers