在matlab中,怎样提取一个矩阵的一行元素或者提取一列元素?
在matlab中,怎样提取一个矩阵的一行元素或者提取一列元素?
比如,从一个6*6矩阵中,提取它的第一行元素,形成一个6维行向量.
比如,从一个6*6矩阵中,提取它的第一行元素,形成一个6维行向量.
其他人气:799 ℃时间:2020-03-26 08:35:27
优质解答
方法:A(i,:) 提取矩阵A的第 i行A(:,i) 提取矩阵A的第 i列给你个例子:>> A=[1:6;2:7;3:8;4:9;5:10;6:11]A(1,:)A(:,1)A =1 2 3 4 5 62 3 4 5 6 73 4 5 6 7 84 5 6 7 8 95 6 7 8 9 106 7 8 9 10 11ans =1 2 3 4...
我来回答
类似推荐
猜你喜欢
- 1闻一多先生,是卓越的学者,热情澎湃的优秀诗人,大勇的革命烈士.用的是什么修辞手法
- 2O____is the tenth month of a year
- 3which color do you like(),biue or green?blue.a.good b.better c.best d.the best
- 4英语翻译
- 5may your borrow i eraser 怎么造句
- 6do one's best和try one's best区别
- 7物体以3m1s的速度向正北方向匀速前进了3s,然后再以2m1s的速度向正东方向匀速运动了6s.问,物体再9s内位移
- 8Nanjing Road Walkway is_______of all the streets in Shanghai.
- 9you ____ study hard if you want to get good grades in english 1.can 2.may 3.must
- 10She is very sad.Tears dorp her fase.(改病句)