Main Form visual Studio

Similar documents
MainForm.cs. Capture grabber; //This is our capture variable

% Edit the above text to modify the response to help Video_Player. % Last Modified by GUIDE v May :38:12

Signal and Systems. Matlab GUI based analysis. XpertSolver.com

LAMPIRAN 1. Percobaan

1. Peralatan LAMPIRAN

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

LISTING PROGRAM. % Edit the above text to modify the response to help cover. % Last Modified by GUIDE v Jun :24:43

GUI code for different sections is in following sections

Homeworks on FFT Instr. and Meas. for Communication Systems- Gianfranco Miele. Name Surname

Ear Recognition. By: Zeyangyi Wang

LISTING PROGRAM. % UIWAIT makes pertama wait for user response (see UIRESUME) % uiwait(handles.figure1);

OMR Sheet Recognition

1.Matlab Image Encryption Code

Supplementary Information

A NEW MACHINING COST CALCULATOR (MC 2 )

We are IntechOpen, the world s leading publisher of Open Access books Built by scientists, for scientists. International authors and editors

% --- Executes on button press in btn_gsn. function btn_gsn_callback(hobject, eventdata, handles) GaussianSpeckleNoise close AiSoftware;

LAMPIRAN A PROGRAM PELATIHAN DAN PENGUJIAN

Lithium-Ion Battery Data. Management

LISTING PROGRAM. if nargout [varargout{1:nargout}] = gui_mainfcn(gui_state, varargin{:}); else gui_mainfcn(gui_state, varargin{:}); end

Lampiran 1. Script M-File Global Ridge

LAMPIRAN LISTING PROGRAM

The Open Core Interface SDK has to be installed on your development computer. The SDK can be downloaded at:

MV 1:00 1:05 1:00 1:05

Akkad Bakad Bambai Bo

Finding a Minimum Covering Circle Based on Infinity Norms

LAMPIRAN A LISTINGPROGRAM

You can call the project anything you like I will be calling this one project slide show.

ECE Fall 05. Undergraduate Research: Digital Signal Processing & Quantization Effects

CALCULATOR APPLICATION

Contents INTERFACING MATLAB WITH EMBEDDED SYSTEMS

Solving Sudoku with MATLAB

Start Visual Studio, start a new Windows Form project under the C# language, name the project BalloonPop MooICT and click OK.

PROGRAMMING IN MATLAB

We are going to use some graphics and found a nice little batman running GIF, off course you can use any image you want for the project.

To start we will be using visual studio Start a new C# windows form application project and name it motivational quotes viewer

CSIS 1624 CLASS TEST 6

Parallel-connected solar arrays

.., 7. References. [ 1] 1 mage Analysis and Mathematical Morphology:J.Serra. [2] Erosion, dilation and related operators,by Mariusz Jankowski

Click on the empty form and apply the following options to the properties Windows.

ALGORITHMS AND INTERFACE FOR OCEAN ACOUSTIC RAY-TRACING (Developed in MATLAB)

IBSDK Quick Start Tutorial for C# 2010

Start Visual Studio and create a new windows form application under C# programming language. Call this project YouTube Alarm Clock.

Airfoil Boundary Layer Separation Prediction

COMPLETELY AUTOMATED PUBLIC TURING TEST TO TELL COMPUTERS AND HUMANS APART

Form Properties Window

We assume that the user has basic knowledge of C# and is able to create a new C# project.

Answer on Question# Programming, C#

Object oriented lab /second year / review/lecturer: yasmin maki

Start Visual Studio, create a new project called Helicopter Game and press OK

Main Game Code. //ok honestly im not sure, if i guess its a class ment for this page called methodtimer that //either uses the timer or set to timer..

Accepted by... John H. Lienhard V

// Precondition: None // Postcondition: The address' name has been set to the // specified value set;

Create your own Meme Maker in C#

LIGHT_P_TOGGLE, LIGHT_N_TOGGLE, BATTERY_TOGGLE, ALTERNATOR_TOGGLE, AVIONICS_TOGGLE, FLOAT_RETRACT, FLOAT_EXTEND }

GUI Signal Analysis and Filtering Design

Now find the button component in the tool box. [if toolbox isn't present click VIEW on the top and click toolbox]

UNIT-3. Prepared by R.VINODINI 1

Huw Talliss Data Structures and Variables. Variables

if (say==0) { k.commandtext = "Insert into kullanici(k_adi,sifre) values('" + textbox3.text + "','" + textbox4.text + "')"; k.

First start a new Windows Form Application from C# and name it Interest Calculator. We need 3 text boxes. 4 labels. 1 button

} } public void getir() { DataTable dt = vt.dtgetir("select* from stok order by stokadi");

Representing Recursive Relationships Using REP++ TreeView

create database ABCD use ABCD create table bolumler ( bolumkodu int primary key, bolumadi varchar(20) )

Implementation of a Motion Detection System

private void closetoolstripmenuitem_click(object sender, EventArgs e) { this.close(); }

Using Template Bookmarks for Automating Microsoft Word Reports

This is the empty form we will be working with in this game. Look under the properties window and find the following and change them.

Writing Your First Autodesk Revit Model Review Plug-In

C:\homeworks\PenAttention_v13_src\PenAttention_v13_src\PenAttention4\PenAttention\PenAttention.cs 1 using System; 2 using System.Diagnostics; 3 using

string spath; string sedifile = "277_005010X228.X12"; string sseffile = "277_005010X228.SemRef.EVAL0.SEF";

Visual Basic/C# Programming (330)

LAMPIRAN A : LISTING PROGRAM

Experiment 5 : Creating a Windows application to interface with 7-Segment LED display

Lecture 8 Building an MDI Application

// Program 2 - Extra Credit // CIS // Spring // Due: 3/11/2015. // By: Andrew L. Wright. //Edited by : Ben Spalding

APÉNDICE J. CÓDIGO DEL ARCHIVO FORM1.CS EN LENGUAJE C# Comprende:

Chapter 12. Tool Strips, Status Strips, and Splitters

namespace csharp_gen277x214 { public partial class Form1 : Form { public Form1() { InitializeComponent(); }

TREBALL FINAL DE GRAU

// Specify SEF file to load. oschema = (edischema) oedidoc.loadschema(spath + sseffilename, SchemaTypeIDConstants. Schema_Standard_Exchange_Format);

MATLAB. Creating Graphical User Interfaces Version 7. The Language of Technical Computing

IMAGE STEGANOGRAPHY USING DISCRETE COSINE TRNASFORM ALGORITHM

Step 1: Start a GUI Project. Start->New Project->Visual C# ->Windows Forms Application. Name: Wack-A-Gopher. Step 2: Add Content

EMGU CV Tutorial UB CS Agenda

Eyes of the Dragon - XNA Part 37 Map Editor Revisited

For this example, we will set up a small program to display a picture menu for a fast food take-away shop.

Real-Time IIR Digital Filters

XNA 4.0 RPG Tutorials. Part 24. Level Editor Continued

IST311 Chapter13.NET Files (Part2)

Chapter 8 Advanced GUI Features

Class Test 4. Question 1. Use notepad to create a console application that displays a stick figure. See figure 1. Question 2

Mainly three tables namely Teacher, Student and Class for small database of a school. are used. The snapshots of all three tables are shown below.

Visual Basic/C# Programming (330)

APARAT DE MASURA. Descrierea programului

private string sconnection = ConfigurationManager.ConnectionStrings["Development"].ConnectionString

Quick Guide for the ServoWorks.NET API 2010/7/13

// Specify SEF file to load. edischema oschema = oedidoc.loadschema(spath + sseffilename, SchemaTypeIDConstants. Schema_Standard_Exchange_Format);

LOK-Viewer : Graphical Interface Application for Geomagnetic Data in Observatory Geomagnetic Lombok

emkt Browserless Coding For C#.Net and Excel

Transcription:

Main Form visual Studio using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.IO.Ports; using Emgu.CV.UI; using Emgu.CV; using Emgu.CV.Structure; using Emgu.CV.CvEnum; using System.IO; using System.Xml; using System.Runtime.InteropServices; using System.Threading; using System.Security.Principal; using System.Threading.Tasks; using Microsoft.Win32.SafeHandles; public partial class MainForm : Form private SerialPort myport; #region variables int threshold=1; Image<Bgr, Byte> currentframe; //display image dari webcam Image<Gray, byte> result, TrainedFace = null; //used to store the result image and trained face Image<Gray, byte> gray_frame = null; //grayscale current image aquired from webcam for processing Capture grabber; //This is our capture variable public CascadeClassifier Face = null; MCvFont font;//our fount for writing within the frame int NumLabels; //Classifier with default training location ClassifierTrain Eigen_Recog = new ClassifierTrain(); #endregion public MainForm() InitializeComponent(); trackbar1.value = threshold; //membuka data training dr data sebelumnya init(); private void init()

myport = new SerialPort(); myport.baudrate = 9600; myport.portname = "COM4"; myport.open(); if (Eigen_Recog.IsTrained) message_bar.text = "Training Data loaded"; message_bar.text = "No training data found, please train program using Train menu option"; initialise_capture(); //Open training form and pass this private void traintoolstripmenuitem_click(object sender, EventArgs e) //Stop Camera stop_capture(); //OpenForm TrainingForm TF = new TrainingForm(this); //file data trainingform TF.Show(); public void retrain() menu option"; message_bar.text = "Training Data loaded"; message_bar.text = "No training data found, please train program using Train //Camera Start Stop public void initialise_capture() //menampung data kamera grabber = new Capture(); grabber.queryframe(); Face = new CascadeClassifier(Application.StartupPath + font = new MCvFont(FONT.CV_FONT_HERSHEY_COMPLEX, 0.5, 0.5); //Initialize the FrameGraber event Application.Idle += new EventHandler(FrameGrabber_Parrellel); private void stop_capture() Application.Idle -= new EventHandler(FrameGrabber_Parrellel); if(grabber!= null)

grabber.dispose(); void FrameGrabber_Parrellel(object sender, EventArgs e) //Get the current frame form capture device currentframe = grabber.queryframe().resize(320, 240, Emgu.CV.CvEnum.INTER.CV_INTER_CUBIC); Clear_label4(); //Clear_Faces_Found(); if (currentframe!= null) gray_frame = currentframe.convert<gray, Byte>(); Rectangle gambar = new Rectangle(20, 60, 80, 80); Size.Empty); //Rectangle[] = DetectMultiScale(gray_frame, 1.2, 10, new Size(20, 20), try result = currentframe.copy(gambar).convert<gray, byte>().resize(100, 100, Emgu.CV.CvEnum.INTER.CV_INTER_CUBIC); result._equalizehist(); //Image<Gray, Byte> img = result.convert<gray, Byte>(); //result = result.thresholdbinary(new Gray(threshold), new Gray(255)); picturebox1.image = result.tobitmap(); currentframe.draw(gambar, new Bgr(Color.Red), 1); currentframe.draw(name + " ", ref font, new Point(gambar.X - 2, gambar.y - 2), new Bgr(Color.Red )); label3.text = name; myport.writeline("b"); if (name == "mutia") myport.writeline("a"); //Convert it to Grayscal catch image_picbx.image = currentframe.tobitmap();

void if_label() label3.text = ""; void Clear_label4() label3.text = ""; void ADD_Found(Image<Gray, Byte> img_found, string name_person, int match_value) PictureBox PI = new PictureBox(); PI.Location = new Point(faces_panel_X, faces_panel_y); PI.Height = 80; PI.Width = 80; PI.SizeMode = PictureBoxSizeMode.StretchImage; PI.Image = img_found.tobitmap(); Label LB = new Label(); LB.Text = name_person + " " + match_value.tostring(); LB.Location = new Point(faces_panel_X, faces_panel_y + 80); //LB.Width = 80; LB.Height = 15; //Menu Opeartions private void exittoolstripmenuitem_click(object sender, EventArgs e) this.dispose(); //Unknow Eigen face calibration private void Eigne_threshold_txtbxChanged(object sender, EventArgs e) try Eigen_Recog.Set_Eigen_Threshold = Math.Abs(Convert.ToInt32(Eigne_threshold_txtbx.Text)); message_bar.text = "Eigen Threshold Set"; catch message_bar.text = "Error in Threshold input please use int"; private void MainForm_Load(object sender, EventArgs e)

private void trackbar1_scroll(object sender, EventArgs e) threshold = trackbar1.value; label2.text = threshold.tostring(); private void image_picbx_click(object sender, EventArgs e) private void picturebox1_click(object sender, EventArgs e)

TrainingForm Visual Studio using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using Emgu.CV.UI; using Emgu.CV; using Emgu.CV.Structure; using Emgu.CV.CvEnum; using System.IO; using System.Drawing.Imaging; using System.Xml; using System.Threading; public partial class TrainingForm : Form #region Variables //Camera specific Capture grabber; int threshold=105; //Images for finding face Image<Bgr, Byte> currentframe; Image<Gray, byte> result = null; Image<Gray, byte> gray_frame = null; //Classifier //For aquiring 10 images in a row List<Image<Gray, byte>> resultimages = new List<Image<Gray, byte>>(); int results_list_pos = 0 bool RECORD = false; 100); //Saving Jpg List<Image<Gray, byte>> ImagestoWrite = new List<Image<Gray, byte>>(); EncoderParameters ENC_Parameters = new EncoderParameters(1); EncoderParameter ENC = new EncoderParameter(System.Drawing.Imaging.Encoder.Quality, ImageCodecInfo Image_Encoder_JPG; //Saving XAML Data file List<string> NamestoWrite = new List<string>(); List<string> NamesforFile = new List<string>(); XmlDocument docu = new XmlDocument(); //Variables MainForm Parent; #endregion

public TrainingForm(MainForm parent) InitializeComponent(); trackbar1.value = threshold; Parent = parent; ENC_Parameters.Param[0] = ENC; Image_Encoder_JPG = GetEncoder(ImageFormat.Jpeg); initialise_capture(); private void Training_Form_FormClosing(object sender, FormClosingEventArgs e) stop_capture(); Parent.retrain(); Parent.initialise_capture(); //Camera Start Stop public void initialise_capture() grabber = new Capture(); grabber.queryframe(); //Initialize the FrameGraber event Application.Idle += new EventHandler(FrameGrabber); private void stop_capture() Application.Idle -= new EventHandler(FrameGrabber); if (grabber!= null) grabber.dispose(); //Initialize the FrameGraber event //Process Frame void FrameGrabber(object sender, EventArgs e) //Get the current frame form capture device currentframe = grabber.queryframe().resize(320, 240, Emgu.CV.CvEnum.INTER.CV_INTER_CUBIC); //Convert it to Grayscale if (currentframe!= null) gray_frame = currentframe.convert<gray, Byte>(); Rectangle gambar = new Rectangle(20, 60, 80, 80); result = currentframe.copy(gambar).convert<gray, byte>().resize(100, 100, Emgu.CV.CvEnum.INTER.CV_INTER_CUBIC); result._equalizehist(); //Image<Gray, Byte> img = result.convert<gray, Byte>(); //result = result.thresholdbinary(new Gray(threshold ), new Gray(255)); currentframe.draw(gambar, new Bgr(Color.Red), 1);

image_picbx.image = currentframe.tobitmap(); if (RECORD && resultimages.count < num_to_aquire) resultimages.add(result); count_lbl.text = "Count: " + resultimages.count.tostring(); if (resultimages.count == num_faces_to_aquire) ADD_BTN.Enabled = true; NEXT_BTN.Visible = true; PREV_btn.Visible = true; count_lbl.visible = false; Single_btn.Visible = true; ADD_ALL.Visible = true; RECORD = false; Application.Idle -= new EventHandler(FrameGrabber); ".jpg"; //Saving The Data private bool save_training_data(image face_data) try Random rand = new Random(); bool file_create = true; string name = "data_" + NAME_PERSON.Text + "_" + rand.next().tostring() + while (file_create) file_create = false; //File.AppendAllText(Application.StartupPath + "/TrainedFaces/TrainedLabels.txt", NAME_PERSON.Text + "\n\r"); bool loading = true; while (loading) try docu.load(application.startuppath + "/TrainedFaces/TrainedLabels.xml"); loading = false; catch docu = null; docu = new XmlDocument(); Thread.Sleep(10);

//Get the root element XmlElement root = docu.documentelement; //Add the values for each nodes //name.value = textboxname.text; //age.innertext = textboxage.text; //gender.innertext = textboxgender.text; name_d.innertext = NAME_PERSON.Text; file_d.innertext = facename; //Construct the Person element //person.attributes.append(name); face_d.appendchild(name_d); face_d.appendchild(file_d); //Add the New person element to the end of the root element root.appendchild(face_d); //Save the document docu.save(application.startuppath + "/TrainedFaces/TrainedLabels.xml"); //XmlElement child_element = docu.createelement("face"); //docu.appendchild(child_element); //docu.save("trainedlabels.xml"); return true; catch (Exception ex) return false; private ImageCodecInfo GetEncoder(ImageFormat format) ImageCodecInfo[] codecs = ImageCodecInfo.GetImageDecoders(); foreach (ImageCodecInfo codec in codecs) if (codec.formatid == format.guid) return codec; return null; //Delete all the old training data by simply deleting the folder private void Delete_Data_BTN_Click(object sender, EventArgs e) if (Directory.Exists(Application.StartupPath + "/TrainedFaces/")) Directory.Delete(Application.StartupPath + "/TrainedFaces/", true); Directory.CreateDirectory(Application.StartupPath + "/TrainedFaces/");

//Add the image to training data private void ADD_BTN_Click(object sender, EventArgs e) if (resultimages.count == num_faces_to_aquire) if (!save_training_data(face_picbx.image)) MessageBox.Show("Error", "Error in saving file info. Training data not saved", MessageBoxButtons.OK, MessageBoxIcon.Error); stop_capture(); if (!save_training_data(face_picbx.image)) MessageBox.Show("Error", "Error in saving file info. Training data not saved", MessageBoxButtons.OK, MessageBoxIcon.Error); initialise_capture(); private void Single_btn_Click(object sender, EventArgs e) RECORD = false; resultimages.clear(); NEXT_BTN.Visible = false; PREV_btn.Visible = false; Application.Idle += new EventHandler(FrameGrabber); Single_btn.Visible = false; count_lbl.text = "Count: 0"; count_lbl.visible = true; //Get 10 image to train private void RECORD_BTN_Click(object sender, EventArgs e) if (NAME_PERSON.Text!= "") if (RECORD) RECORD = false; if (resultimages.count == 10) resultimages.clear(); timer1.enabled = false ; Application.Idle += new EventHandler(FrameGrabber); RECORD = true; ADD_BTN.Enabled = false; timer1.enabled = true ; MessageBox.Show("Write Person Name First!! "); private void NEXT_BTN_Click(object sender, EventArgs e) if (results_list_pos < resultimages.count - 1)

face_picbx.image = resultimages[results_list_pos].tobitmap(); results_list_pos++; PREV_btn.Enabled = true; NEXT_BTN.Enabled = false; private void PREV_btn_Click(object sender, EventArgs e) if (results_list_pos > 0) results_list_pos--; NEXT_BTN.Enabled = true; PREV_btn.Enabled = false; private void ADD_ALL_Click(object sender, EventArgs e) for(int i = 0; i<resultimages.count;i++) MessageBox.Show("Error", "Error in saving file info. Training data not saved", MessageBoxButtons.OK, MessageBoxIcon.Error); Thread.Sleep(100); ADD_ALL.Visible = false; //restart single face detection Single_btn_Click(null, null); private void TrainingForm_Load(object sender, EventArgs e) private void trackbar1_scroll(object sender, EventArgs e) threshold = trackbar1.value; label3.text = threshold.tostring(); private void timer1_tick(object sender, EventArgs e) private void image_picbx_click(object sender, EventArgs e)

Arduino int in1 = 5; int in2 = 6; int ENA = 7; int SPEED = 200; int SPEED1 = 0; int motordata; void setup() // put your setup code here, to run once: pinmode(in1,output); pinmode(in2,output); pinmode(ena,output); digitalwrite(in1,low); digitalwrite(in2,low);

Serial.begin(9600); void loop() if (Serial.available() > 0) motordata = Serial.read(); if(motordata == 'A') // Single Quote! This is a character. digitalwrite(in1,high); digitalwrite(in2,low); analogwrite(ena,speed); delay(1000); digitalwrite(in1,low); digitalwrite(in2,low); analogwrite(ena,speed1);

if(motordata == 'B') // Single Quote! This is a character. digitalwrite(in1,low); digitalwrite(in2,low); analogwrite(ena,speed1);

Box Counting Dimensi Fraktal Matlab function varargout = ProgramBOXCounting(varargin) % PROGRAMBOXCOUNTING M-file for ProgramBOXCounting.fig % PROGRAMBOXCOUNTING, by itself, creates a new PROGRAMBOXCOUNTING or raises the existing % singleton*. % % H = PROGRAMBOXCOUNTING returns the handle to a new PROGRAMBOXCOUNTING or the handle to % the existing singleton*. % % PROGRAMBOXCOUNTING('CALLBACK',hObject,eventData,handles,...) calls the local % function named CALLBACK in PROGRAMBOXCOUNTING.M with the given input arguments. % % PROGRAMBOXCOUNTING('Property','Value',...) creates a new PROGRAMBOXCOUNTING or raises the % existing singleton*. Starting from the left, property value pairs are % applied to the GUI before ProgramBOXCounting_OpeningFcn gets called. An % unrecognized property name or invalid value makes property application % stop. All inputs are passed to ProgramBOXCounting_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 ProgramBOXCounting % Last Modified by GUIDE v2.5 13-Jun-2017 03:52:56 % Begin initialization code - DO NOT EDIT gui_singleton = 1; gui_state = struct('gui_name', mfilename,... 'gui_singleton', gui_singleton,... 'gui_openingfcn', @ProgramBOXCounting_OpeningFcn,... 'gui_outputfcn', @ProgramBOXCounting_OutputFcn,... 'gui_layoutfcn', [],... 'gui_callback', []); if nargin && ischar(varargin1) gui_state.gui_callback = str2func(varargin1); end if nargout [varargout1:nargout] = gui_mainfcn(gui_state, varargin:); gui_mainfcn(gui_state, varargin:); end % End initialization code - DO NOT EDIT

% --- Executes just before ProgramBOXCounting is made visible. function ProgramBOXCounting_OpeningFcn(hObject, eventdata, handles, varargin) % This function has no output args, see OutputFcn. % hobject handle to figure % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % varargin command line arguments to ProgramBOXCounting (see VARARGIN) % Choose default command line output for ProgramBOXCounting handles.output = hobject; % Update handles structure guidata(hobject, handles); % UIWAIT makes ProgramBOXCounting wait for user response (see UIRESUME) % uiwait(handles.figure1); % --- Outputs from this function are returned to the command line. function varargout = ProgramBOXCounting_OutputFcn(hObject, eventdata, handles) % varargout cell array for returning output args (see VARARGOUT); % hobject handle to figure % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Get default command line output from handles structure varargout1 = handles.output; % --- Executes on button press in pushbutton1. function pushbutton1_callback(hobject, eventdata, handles) [nama_file,nama_path]=uigetfile('*.jpg';'*.bmp';'*.png';'*.tif',... 'Buka Citra'); if~isequal(nama_file,0) handles.data1=imread(fullfile(nama_path,nama_file)); guidata(hobject,handles); axes(handles.axes1) imshow(handles.data1) colormap gray axis square title('citra Asli'); [row,col,val]=size(handles.data1); return end % hobject handle to pushbutton1 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % --- Executes on button press in pushbutton2. function pushbutton2_callback(hobject, eventdata, handles) [n,r] = boxcount(handles.data1); axes(handles.axes2);

boxcount(handles.data1); axes(handles.axes3); boxcount(handles.data1, 'slope'); df=-diff(log(n))./diff(log(r)) nilaiy = get(handles.pushbutton1,'value') % hobject handle to pushbutton2 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % --- Executes on button press in pushbutton3. function pushbutton3_callback(hobject, eventdata, handles) % hobject handle to pushbutton3 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % --- Executes on button press in pushbutton4. function pushbutton4_callback(hobject, eventdata, handles) % hobject handle to pushbutton4 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)