matlab中用stem画图我用help stem,显示中有一项 If Y is a matrix then each column is plotted as a separa.我想知道如果y是矩阵,stem(x,

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/02 03:39:06
matlab中用stem画图我用help stem,显示中有一项 If Y is a matrix then each column is plotted as a separa.我想知道如果y是矩阵,stem(x,

matlab中用stem画图我用help stem,显示中有一项 If Y is a matrix then each column is plotted as a separa.我想知道如果y是矩阵,stem(x,
matlab中用stem画图
我用help stem,显示中有一项 If Y is a matrix then each column is plotted as a separa.我想知道如果y是矩阵,stem(x,

matlab中用stem画图我用help stem,显示中有一项 If Y is a matrix then each column is plotted as a separa.我想知道如果y是矩阵,stem(x,

>> a=magic(3)

a =

     8     1     6

     3     5     7

     4     9     2

>> stem(a)

%%%%%%%%%%%%%%%%%

从图中可以看出,1,2,3处各有三个值,也就是第一行,第二行,第三行对应的数值,相同的列用相同的颜色进行画图.