matlab 怎么在已经画出的图像上标记新标记的点
时间: 2024-03-01 16:54:44 浏览: 172
可以使用MATLAB中的"hold on"命令来实现在已经存在的图像上添加新的标记点。具体步骤如下:
1. 画出原始图像,例如使用plot命令:
```
x = 1:10;
y = x.^2;
plot(x,y)
```
2. 添加新的标记点,例如使用scatter命令:
```
hold on
new_x = 5;
new_y = 25;
scatter(new_x,new_y,'filled','r')
```
其中,'filled'表示标记点为实心,'r'表示标记点的颜色为红色。
注意:在添加新的标记点时必须使用"hold on"命令,否则会覆盖原始图像。如果需要在添加完标记点后取消保持状态,可以使用"hold off"命令。
阅读全文
相关推荐
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![docx](https://img-home.csdnimg.cn/images/20241231044901.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![docx](https://img-home.csdnimg.cn/images/20241231044901.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![-](https://img-home.csdnimg.cn/images/20241231044955.png)
![-](https://img-home.csdnimg.cn/images/20241231045053.png)
![-](https://img-home.csdnimg.cn/images/20241231045053.png)