matlab画图,大家看看我哪错了?x1=linspace(10,40,80);x2=linspace(40,80,80);y1=1-(75.8.*x1)./5100;y2=1-(-140+20.0.*(49+136.*x2).^0.5)./5100;[AX,H1,H2] = plotyy(y1,x1,'.k',y2,x2,'-k');set(H2,'Marker' ,'*')set(H1,'Marker' ,'.')我想得到的是
matlab画图,大家看看我哪错了?x1=linspace(10,40,80);x2=linspace(40,80,80);y1=1-(75.8.*x1)./5100;y2=1-(-140+20.0.*(49+136.*x2).^0.5)./5100;[AX,H1,H2] = plotyy(y1,x1,'.k',y2,x2,'-k');set(H2,'Marker' ,'*')set(H1,'Marker' ,'.')我想得到的是
matlab画图,大家看看我哪错了?
x1=linspace(10,40,80);
x2=linspace(40,80,80);
y1=1-(75.8.*x1)./5100;
y2=1-(-140+20.0.*(49+136.*x2).^0.5)./5100;
[AX,H1,H2] = plotyy(y1,x1,'.k',y2,x2,'-k');
set(H2,'Marker' ,'*')
set(H1,'Marker' ,'.')
我想得到的是带有散点标记的曲线,如 *,> < 等标记的线,类似于plot(x,y,'*')的.
[AX,H1,H2] = plotyy(y1,x1,'.k',y2,x2,'-k');
set(H2,'Marker' ,'*')
set(H1,'Marker' ,'.')
怎么修改就对了?
matlab画图,大家看看我哪错了?x1=linspace(10,40,80);x2=linspace(40,80,80);y1=1-(75.8.*x1)./5100;y2=1-(-140+20.0.*(49+136.*x2).^0.5)./5100;[AX,H1,H2] = plotyy(y1,x1,'.k',y2,x2,'-k');set(H2,'Marker' ,'*')set(H1,'Marker' ,'.')我想得到的是
x1=linspace(10,40,80);
x2=linspace(40,80,80);
y1=1-(75.8.*x1)./5100;
y2=1-(-140+20.0.*(49+136.*x2).^0.5)./5100;
[AX,H1,H2] = plotyy(y1,x1,y2,x2);
set(H2,'Color', 'k', 'Marker' ,'*');
set(H1,'Color', 'k', 'Marker' ,'.');
这是你想要的效果么?