matlab 中画图 a=[1 1;2 0;4 3;6 0;8.5 3;12 0;14 2;]以第一列为X轴,第二列为Y轴画图,程序怎么写呀?

来源:学生作业学帮网 编辑:学帮网 时间:2024/05/28 02:26:01

matlab 中画图 a=[1 1;2 0;4 3;6 0;8.5 3;12 0;14 2;]以第一列为X轴,第二列为Y轴画图,程序怎么写呀?

折线图 plot(a(:,1),a(:,2))
散点图 scatter(a(:,1),a(:,2))