matlab中plot函数的参数
时间: 2023-05-25 18:06:55 浏览: 137
plot函数的参数包括:
1. x:表示横坐标的数据点集合,可以是矩阵、向量或者多个输入序列组成的矩阵,若忽略则表示默认横坐标为1到n(n为y的长度)。
2. y:表示纵坐标的数据点集合,可以是矩阵、向量或者多个输入序列组成的矩阵。
3. line_spec:可以指定用于绘制线的样式和颜色,例如:'r--'表示红色破折号线,'bs'表示蓝色方块点。line_spec可以缺省。
4. 'PropertyName','PropertyValue':可以指定其他属性,例如'LineWidth','MarkerEdgeColor'等等。这些属性可以在plot属性面板上编辑。
5. 'ColorOrder':可以指定一组颜色,让多条线条依次用不同颜色绘制。
6. 'MarkerOrder':可以指定一组标记类型,让多条线条依次用不同标记绘制。
7. 'LineStyleOrder':可以指定一组线条样式,让多条线条依次用不同线条样式绘制。
阅读全文
相关推荐













