如何在Matlab绘制的图像坐标轴上加箭头?
来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/09 18:44:12
如何在Matlab绘制的图像坐标轴上加箭头?
x=[22.471 22.438 22.394 22.362 22.262 22.008 20.931 19.52 18.03 13.824 10.567 9.232 7.494 6.433 5.808 5.293 4.891 4.519 4.204 3.908 3.648 3.404 3.146 2.929 2.499 2.159];
y=[0 10 20 30 50 75 100 125 150 200 250 300 400 500 600 700 800 900 1000 1100 1200 1300 1400 1500 1750 2000];
plot(x,y,'r.')
p=polyfit(x,y,3);
y1=p(1)*x.^3+p(2)*x.^2+p(3)*x+p(4);
plot(x,y,'r.')
hold on
plot(x,y1,'-','LineWidth',2)
set(gca,'Ydir','reverse')
axis([0 25 0 2000])
set(gca,'XAxisLocation','top')
hold off
这是我修改后的完善的程序,但是要如何在X,Y轴上加箭头呢?
x=[22.471 22.438 22.394 22.362 22.262 22.008 20.931 19.52 18.03 13.824 10.567 9.232 7.494 6.433 5.808 5.293 4.891 4.519 4.204 3.908 3.648 3.404 3.146 2.929 2.499 2.159];
y=[0 10 20 30 50 75 100 125 150 200 250 300 400 500 600 700 800 900 1000 1100 1200 1300 1400 1500 1750 2000];
plot(x,y,'r.')
p=polyfit(x,y,3);
y1=p(1)*x.^3+p(2)*x.^2+p(3)*x+p(4);
plot(x,y,'r.')
hold on
plot(x,y1,'-','LineWidth',2)
set(gca,'Ydir','reverse')
axis([0 25 0 2000])
set(gca,'XAxisLocation','top')
hold off
这是我修改后的完善的程序,但是要如何在X,Y轴上加箭头呢?
请问楼主是要这种效果么?
如何在Matlab绘制的图像坐标轴上加箭头?
origin 如何绘制带箭头的坐标轴?
matlab怎样绘制函数图像的坐标轴?就是画好的图像,但是坐标轴不在原点,现在怎样把坐标轴调整到原点上?
matlab如何绘制参数函数的图像?
在matlab中画圆时,怎么绘制十字坐标轴
Mathematica急问!如何在RegionPlot绘制的图像上绘制文字?就像Text函数!
如何在Matlab中绘制floor(y)=floor(x)方程的图像
MATLAB绘制二维图时如何使坐标轴名字显示在右侧?
matlab绘制函数图像的问题
用matlab绘制图像的交点
如何在matlab中画出带箭头的线段
matlab中绘制向量用quiver命令如何调整显示密度?向量的箭头显示的太小,太多了