MATLAB 中如果用scatterplot 绘制的图,默认的是蓝色,想要用红色表示怎么写命令。加( ...,‘r’)不行啊
>>a = rand(10,1);
scatterplot(a,1,0,'rx');
追问(a,1,0,'rx')中1,0是什么意思?
追答scatterplot(x,n,offset,plotstring) is the same as the syntax above, except that plotstring determines the plotting symbol, line type, and color for the plot. plotstring is a string whose format and meaning are the same as in the plot function.