matlab copyobj 颜色,怎么用copyobj复制line对象

这是一个关于如何在MATLAB中使用copyobj函数将line对象复制到另一个图像的问题。博客提供了名为hua的MATLAB函数示例,该函数包含一个图形用户界面,允许用户在图像上绘制线条,并通过pushbutton1保存带有线条的新图像。当用户按下鼠标并拖动时,会在图像上画线;松开鼠标时,绘制结束。问题在于将这些line对象复制到新的图像中。
摘要由CSDN通过智能技术生成

不好意思,因我急交东西给老师那边,但是就是不会怎么把line对象用copyobj到另一个图片中。所以再次一问。虽然我知道findobj得到line对象,但是不我知道把那些程序放在我画图板程序的哪个位置,所以再一次提问。下面是在罗老师的帮助下写一个画图板程序。

function varargout = hua(varargin)

% HUA M-file for hua.fig

%      HUA, by itself, creates a new HUA or raises the existing

%      singleton*.

%

%      H = HUA returns the handle to a new HUA or the handle to

%      the existing singleton*.

%

%      HUA('CALLBACK',hObject,eventData,handles,...) calls the local

%      function named CALLBACK in HUA.M with the given input arguments.

%

%      HUA('Property','Value',...) creates a new HUA or raises the

%      existing singleton*.  Starting from the left, property value pairs are

%      applied to the GUI before hua_OpeningFcn gets called.  An

%      unrecognized property name or invalid value makes property application

%      stop.  All inputs are passed to hua_OpeningFcn via varargin.

%

%      *See GUI Options on GUIDE's Tools menu.  Choose "GUI allows only one

%      instance to run (singleton)".

%

% See also: GUIDE, GUIDATA, GUIHANDLES

% Edit the above text to modify the response to help hua

% Last Modified by GUIDE v2.5 26-Aug-2010 12:59:03

% Begin initialization code - DO NOT EDIT

gui_Singleton 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值