1.Matlab Image Encryption Code
|
|
- Charlotte Walters
- 6 years ago
- Views:
Transcription
1 1.Matlab Image Encryption Code (URL: This project is Image Encryption & Decryption. The user will give an input and encryption factor. The image will be converted to an encrypted image file. This image is not understandable by any one. Matlab Image Encryption Code When the receiver will receive the encrypted file he will decrypt it so he will get the original file. We have used a simple GUI for our cryptosystem. We have used three push buttons in our GUI representing 1. Input Image Select 2. Encrypt Image 3. Decrypt Image Main Code: function varargout = ImageEncryptionGui(varargin) gui_singleton = 1; gui_state = struct('gui_name', mfilename,... 'gui_singleton', gui_singleton,... 'gui_layoutfcn', [],... 'gui_callback', []); if nargin && ischar(varargin{1}) gui_state.gui_callback = str2func(varargin{1});
2 if nargout [varargout{1:nargout}] = gui_mainfcn(gui_state, varargin{:}); else gui_mainfcn(gui_state, varargin{:}); function ImageEncryptionGui_OpeningFcn(hObject, eventdata, handles, varargin) handles.output = hobject; axes(handles.axes4) %BackGr = imread('2redpanda.jpg'); %imshow(backgr); guidata(hobject, handles); clear all; clc; global Img; global EncImg; global DecImg; function varargout = ImageEncryptionGui_OutputFcn(hObject, eventdata, handles) varargout{1} = handles.output; function pushbutton1_callback(hobject, eventdata, handles) global Img; global key; X = uigetfile('*.jpg;*.tiff;*.ppm;*.pgm;*.png','pick a jpge file'); Img = imread(x); axes(handles.axes1) imshow(img); [n m k] = size(img); key = keygen(n*m); guidata(hobject, handles); function pushbutton2_callback(hobject, eventdata, handles) global Img ; global EncImg; global key; EncImg = imageprocess(img,key);
3 axes(handles.axes2) imshow(encimg); imwrite(encimg,'encoded.jpg','jpg'); guidata(hobject, handles); function pushbutton3_callback(hobject, eventdata, handles) global DecImg; global EncImg; global key; DecImg = imageprocess(encimg,key); axes(handles.axes3); imshow(decimg); imwrite(decimg,'decoded.jpg','jpg'); guidata(hobject, handles); Image Process Code: function [proimageout] = imageprocess(imginp,key) [n m k] = size(imginp); % key =cell2mat(struct2cell( load('key5.mat'))); % key = keygen(n*m); for ind = 1 : m Fkey(:,ind) = key((1+(ind-1)*n) : (((ind-1)*n)+n)); len = n; bre = m; for ind = 1 : k Img = ImgInp(:,:,ind); for ind1 = 1 : len for ind2 = 1 : bre proimage(ind1,ind2) = bitxor(img(ind1,ind2),fkey(ind1,ind2)); proimageout(:,:,ind) = proimage(:,:,1); % figure,imshow(proimageout); return; 2. Selective Encryption Matlab Code (URL: In an image encryption algorithm, images are protected by using encryption techniques, called fully layered; in this approach the
4 whole content of the images is encrypted. But in the case of selective encryption, some content of the image is unencrypted. Selective encryption algorithm reduces the execution time because it encrypts only a part of the image. Consequently, selective encryption is sometimes called partial encryption. The matlab code for selective encryption algorithm is as follows: % Program for Selective Encryption function selective_encryption tic [i11,i12]=uigetfile('*.*');%xxxxxx Input Image XXXXXXXXXXX i12=strcat(i12,i11); im2=imread(i12); % im12=imread('1.jpg'); im=imresize(im2,[ ]); im1=im(:,:,1); z=input('select the key for Image Encryption ') ; z1=z; % im1=rgb2gray(im); % im1=medfilt2(im1,[3 3]); % figure(1); subplot(2,2,1);imshow(im); title('input Image'); im2=double(im1); [M,N]=size(im2); e=hundungen(m,n,0.1); tt=0.001;
5 im3=mod(tt*im2+(1-tt)*e,256); a1(:,:,1)=round(im3(:,:,1));a1(:,:,2)=im(:,:,2);a1(:,:,3)=im(:,:,3); for i=1:400 for j=1:400 a1(i,j,1)=bitxor (a1(i,j,3),a1(i,j,1)); a1(i,j,2)=bitxor (a1(i,j,1),a1(i,j,2)); a1(i,j,3)=bitxor (a1(i,j,2),a1(i,j,3)); for i=1:400 for j=1:400 a1(i,j,1)=bitxor (a1(i,j,3),a1(i,j,2)); a1(i,j,2)=bitxor (a1(i,j,1),a1(i,j,3)); a1(i,j,3)=bitxor (a1(i,j,2),a1(i,j,1)); % for i=1:400 % for j=1:400 % a1(i,j,1)=mod((a1(i,j,3)+a1(i,j,1)),255); % a1(i,j,2)=mod((a1(i,j,1)+a1(i,j,2)),255); % a1(i,j,3)=mod((a1(i,j,2)+a1(i,j,3)),255); % % % % % for i=1:400 % for j=1:400 % a1(i,j,1)=mod((a1(i,j,2)+a1(i,j,3)),255);
6 % a1(i,j,2)=mod((a1(i,j,3)+a1(i,j,1)),255); % a1(i,j,3)=mod((a1(i,j,1)+a1(i,j,2)),255); % % % % % figure(2); subplot(2,2,2);imshow(uint8(a1),[]); title('encrypted Image'); toc clc; % if (z1==input('enter the key ')) tic e=keygen(m,n,0.1); im5=(im3-(1-tt)*e)/tt; a1(:,:,1)=round(im5(:,:,1));a1(:,:,2)=im(:,:,2);a1(:,:,3)=im(:,:,3); % for i=1:400 % for j=1:400 % a1(i,j,1)=bitxor (a1(i,j,3),a1(i,j,1)); % a1(i,j,2)=bitxor (a1(i,j,1),a1(i,j,2)); % a1(i,j,3)=bitxor (a1(i,j,2),a1(i,j,3)); % % % % figure(3); subplot(2,2,3);imshow(uint8(a1),[]); title('final Image'); figure(4);
7 subplot(231) imhist(uint8(im1)); title('histogram of input image'); subplot(233) imhist(uint8(im3)); title('histogram of Selectively Encrypted image'); subplot(234) imhist(uint8(im5)); title('histogram of final Image'); else input('************** Sorry,Wrong Key *******************! '); toc function e=hundungen(m,n,key0) for(i=1:200) key0=3.925*key0*(1-key0); key1=3.925; key0=key1*key0*(1-key0); a(i,j)=key0; key3=0.2; key2=3.925;
8 key3=key2*key3*(1-key3); b(i,j)=key3; key4=0.3; key2=3.925; key4=key2*key4*(1-key4); c(i,j)=key4; t=0.4; w0=0.2; w1=0.5; w2=0.3; w=(1-t)^2*w0+2*t*(1-t)*w1+t^2*w2; P(i,j)=(1-t)^2*a(i,j)*w0+2*t*(1- t)*b(i,j)*w1+t^2*c(i,j)*w2; % d(i,j)=p(i,j)/w; d(i,j)=p(i,j); x=d; e=round(x*255); function e=keygen(m,n,key0)
9 for(i=1:200) key0=3.925*key0*(1-key0); key1=3.925; key0=key1*key0*(1-key0); a(i,j)=key0; key3=0.2; key2=3.925; key3=key2*key3*(1-key3); b(i,j)=key3; key4=0.3; key2=3.925; key4=key2*key4*(1-key4); c(i,j)=key4; t=0.4; w0=0.2; w1=0.5; w2=0.3; w=(1-t)^2*w0+2*t*(1-t)*w1+t^2*w2;
10 P(i,j)=(1-t)^2*a(i,j)*w0+2*t*(1- t)*b(i,j)*w1+t^2*c(i,j)*w2; % d(i,j)=p(i,j)/w; d(i,j)=p(i,j); x=d; e=round(x*255); %Note:- Copy the code,selective encryption code, keygen code and hundungen function code, make seperate matlab file. Make three 'm' file in matlab.one for selective encryption, second for hundungen(m,n,key0) function and third for key generation. Save the file with file name selective _encryption. Execute the selective _encryption file and make sure both the files are in the current directory at the time of execution. Key will be numeric. Results for the given algorithm: Lena image is the input for the algorithm.
11 Fig.1 (a)input Image (b)selective Encrypted Image (c)decrypted Image Fig.2 (a)histogram of the Original Image (b)histogram of the Selectively Encrypted Image (c)histogram of Output Image Hence, fig.1 and fig.2 suggest that the algorithm is efficient to encrypt and decrypt the image. Please check the following links: html
Signal and Systems. Matlab GUI based analysis. XpertSolver.com
Signal and Systems Matlab GUI based analysis Description: This Signal and Systems based Project takes a sound file in.wav format and performed a detailed analysis, as well as filtering of the signal. The
More information% Edit the above text to modify the response to help Video_Player. % Last Modified by GUIDE v May :38:12
FILE NAME: Video_Player DESCRIPTION: Video Player Name Date Reason Sahariyaz 28-May-2015 Basic GUI concepts function varargout = Video_Player(varargin) VIDEO_PLAYER MATLAB code for Video_Player.fig VIDEO_PLAYER,
More informationLAMPIRAN 1. Percobaan
LAMPIRAN 1 1. Larutan 15 ppm Polystyrene ENERGI Percobaan 1 2 3 PROBABILITY 0.07 0.116 0.113 0.152 0.127 0.15 0.256 0.143 0.212 0.203 0.22 0.24 0.234 0.23 0.234 0.3 0.239 0.35 0.201 0.263 0.37 0.389 0.382
More information1. Peralatan LAMPIRAN
1. Peralatan LAMPIRAN 2. Data Sampel a. Air murni 3ml Energy(mj) Probability Air Murni 0.07 0.001 0.15 0.003 0.22 0.006 0.3 0.028 0.37 0.045 0.39 0.049 0.82 0.053 0.89 0.065 1.28 0.065 1.42 0.106 1.7
More informationGUI code for different sections is in following sections
Software Listing The Graphical User Interface (GUI) and Fuzzy Inference System (FIS) are developed in MATLAB. Software code is developed for different sections like Weaving section, Motor Status, Environment,
More information% Edit the above text to modify the response to help Principal
function varargout = Principal(varargin) % OPFGUI MATLAB code for Principal.fig % OPFGUI, by itself, creates a new OPFGUI or raises the existing % singleton*. % % H = OPFGUI returns the handle to a new
More informationMV 1:00 1:05 1:00 1:05
1 54 MV 1:00 1:05 1:00 1:05 55 DTW 56 function varargout = my_filter8(varargin) gui_singleton = 1; gui_state = struct('gui_name', mfilename,... 'gui_singleton', gui_singleton,... 'gui_openingfcn', @my_filter8_openingfcn,...
More informationHomeworks on FFT Instr. and Meas. for Communication Systems- Gianfranco Miele. Name Surname
Homeworks on FFT 90822- Instr. and Meas. for Communication Systems- Gianfranco Miele Name Surname October 15, 2014 1 Name Surname 90822 (Gianfranco Miele): Homeworks on FFT Contents Exercise 1 (Solution)............................................
More informationEar Recognition. By: Zeyangyi Wang
Ear Recognition By: Zeyangyi Wang Ear Recognition By: Zeyangyi Wang Online: < http://cnx.org/content/col11604/1.3/ > C O N N E X I O N S Rice University, Houston, Texas This selection and arrangement
More informationLISTING PROGRAM. % UIWAIT makes pertama wait for user response (see UIRESUME) % uiwait(handles.figure1);
LISTING PROGRAM FORM PERTAMA : function varargout = pertama(varargin) gui_singleton = 1; gui_state = struct('gui_name', mfilename,... 'gui_singleton', gui_singleton,... 'gui_openingfcn', @pertama_openingfcn,...
More informationLISTING PROGRAM. % Edit the above text to modify the response to help cover. % Last Modified by GUIDE v Jun :24:43
A1 LISTING PROGRAM 1. Form Cover function varargout = cover(varargin) COVER MATLAB code for cover.fig COVER, by itself, creates a new COVER or raises the existing singleton*. H = COVER returns the handle
More informationLAMPIRAN A LISTINGPROGRAM
LAMPIRAN A LISTINGPROGRAM 1. Form Utama (myprogram.fig) function varargout = myprogram(varargin) gui_singleton = 1; gui_state = struct('gui_name', mfilename,... 'gui_singleton', gui_singleton,... 'gui_openingfcn',
More informationLISTING PROGRAM. if nargout [varargout{1:nargout}] = gui_mainfcn(gui_state, varargin{:}); else gui_mainfcn(gui_state, varargin{:}); end
A-1 LISTING PROGRAM 1. Form Cover function varargout = cover(varargin) gui_singleton = 1; gui_state = struct('gui_name', mfilename,... 'gui_singleton', gui_singleton,... 'gui_openingfcn', @cover_openingfcn,...
More information% --- Executes on button press in btn_gsn. function btn_gsn_callback(hobject, eventdata, handles) GaussianSpeckleNoise close AiSoftware;
A-2 'gui_openingfcn', @AiSoftware_OpeningFcn,... 'gui_outputfcn', @AiSoftware_OutputFcn,... 'gui_layoutfcn', [],... 'gui_callback', []); if nargin && ischar(varargin{1}) gui_state.gui_callback = str2func(varargin{1});
More informationLAMPIRAN LISTING PROGRAM
A1 LAMPIRAN LISTING PROGRAM Prototype.m function varargout = prototype(varargin) gui_singleton = 1; gui_state = struct('gui_name', mfilename,... 'gui_singleton', gui_singleton,... 'gui_openingfcn', @prototype_openingfcn,...
More informationCOMPLETELY AUTOMATED PUBLIC TURING TEST TO TELL COMPUTERS AND HUMANS APART
COMPLETELY AUTOMATED PUBLIC TURING TEST TO TELL COMPUTERS AND HUMANS APART 1 Varjith Anchuri, 2 K.Hanuman Krishna, 3 M.Gopi Chand, 4 S.Rishi, UG Scholar Dept Of CSE, SRM University,Chennai. Abstract A
More informationWe are IntechOpen, the world s leading publisher of Open Access books Built by scientists, for scientists. International authors and editors
We are IntechOpen, the world s leading publisher of Open Access books Built by scientists, for scientists 3,500 108,000 1.7 M Open access books available International authors and editors Downloads Our
More informationOMR Sheet Recognition
International Journal of Information & Computation Technology. ISSN 0974-2239 Volume 8, Number 1 (2018), pp. 11-32 International Research Publications House http://www. irphouse.com OMR Sheet Recognition
More informationSupplementary Information
Supplementary Information Retooling Laser Speckle Contrast Analysis Algorithm to Enhance Non-Invasive High Resolution Laser Speckle Functional Imaging of Cutaneous Microcirculation Surya C Gnyawali 1,
More informationLAMPIRAN A PROGRAM PELATIHAN DAN PENGUJIAN
LAMPIRAN A PROGRAM PELATIHAN DAN PENGUJIAN Program Preprocessing Image clc; clear all; % Preprocessing Image -------------------------------------------- daniel{1}=imread('daniel1.bmp'); daniel{2}=imread('daniel2.bmp');
More informationLampiran 1. Script M-File Global Ridge
LAMPIRAN 67 Lampiran 1. Script M-File Global Ridge function [l, e, L, E] = globalridge(h, Y, l) [l, e, L, E] = globalridge(h, Y, l, options, U) Calculates the best global ridge regression parameter (l)
More informationA NEW MACHINING COST CALCULATOR (MC 2 )
A NEW MACHINING COST CALCULATOR (MC 2 ) By MATHEW RUSSELL JOHNSON A THESIS PRESENTED TO THE GRADUATE SCHOOL OF THE UNIVERSITY OF FLORIDA IN PARTIAL FULFILLMENT OF THE REQUIREMENTS FOR THE DEGREE OF MASTER
More informationGUI Signal Analysis and Filtering Design
i GUI Signal Analysis and Filtering Design Axel Daniela Campero Vega, Electrical Engineering Project Advisor: Dr. Dick Blandford April 26, 2018 Evansville, Indiana ii Acknowledgements I want to thank Dr.
More informationAkkad Bakad Bambai Bo
Akkad Bakad Bambai Bo The Josephus Problem Shivam Sharma, Rajat Saini and Natasha Sharma Cluster Innovation Center, University of Delhi Abstract We aim to give explanation of the recursive formula for
More informationFinding a Minimum Covering Circle Based on Infinity Norms
Finding a Minimum Covering Circle Based on Infinity Norms by Andrew A. Thompson ARL-TR-4495 July 2008 Approved for public release; distribution is unlimited. NOTICES Disclaimers The findings in this report
More informationSolving Sudoku with MATLAB
Solving Sudoku with MATLAB Raluca Marinescu Andrea Garcia Ivan Castro Eduard Paul Enoiu Mälardalen University, Västerås, Sweden {rmu09001, aga09001, ico09002, eeu09001}@student.mdh.se March 25, 2011 Abstract
More informationECE Fall 05. Undergraduate Research: Digital Signal Processing & Quantization Effects
ECE 491-153 Fall 05 Undergraduate Research: Digital Signal Processing & Quantization Effects Done By: Tanim Taher SID# 10370800 Date: December 19, 2005 DSP & Quantization 1 Tanim Taher ACKNOWLEDGEMENTS
More informationLithium-Ion Battery Data. Management
Lithium-Ion Battery Data Management Frank Ferrato Dr. Jung-Hyun Kim April 2018 Abstract: Lithium Ion Battery research is growing due to the need for renewable resources. Since the amount of research is
More informationMain Form visual Studio
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;
More information.., 7. References. [ 1] 1 mage Analysis and Mathematical Morphology:J.Serra. [2] Erosion, dilation and related operators,by Mariusz Jankowski
7. References [ 1] 1 mage Analysis and Mathematical Morphology:J.Serra [2] Erosion, dilation and related operators,by Mariusz Jankowski [3] Morphological Image Processing by Ranga Rodrigo [4] Application
More informationContents INTERFACING MATLAB WITH EMBEDDED SYSTEMS
Contents MATLAB INTRODUCTION:... 1 Why it is useful for prototyping AI projects??... 2 Using MATLAB as a calculator:... 3 How to use conditions... 8 Serial/Parallel communication:... 9 Color Detection
More informationPROGRAMMING IN MATLAB
PROGRAMMING IN MATLAB Rohan D sa Rafael Love Todd Page OBJECTIVE: This document gives an overview of a few aspects related to programming in Matlab. With the help of a sample program, it goes through some
More informationImplementation of a Motion Detection System
Implementation of a Motion Detection System Asif Ansari 1, T.C.Manjunath (Ph.D., IIT Bombay) 2, C.Ardil 3 Abstract In today s competitive environment, the security concerns have grown tremously. In the
More informationLOK-Viewer : Graphical Interface Application for Geomagnetic Data in Observatory Geomagnetic Lombok
LOK-Viewer : Graphical Interface Application for Geomagnetic Data in Observatory Geomagnetic Lombok Giri W. Wiriasto, Teti Zubaidah, Bulkis Kanata Electrical Engineering Dept. Mataram University Lombok,
More informationParallel-connected solar arrays
Scholars' Mine Masters Theses Student Research & Creative Works Spring 2013 Parallel-connected solar arrays Majed Meshal Alabbass Follow this and additional works at: http://scholarsmine.mst.edu/masters_theses
More informationAirfoil Boundary Layer Separation Prediction
Airfoil Boundary Layer Separation Prediction A project present to The Faculty of the Department of Aerospace Engineering San Jose State University in partial fulfillment of the requirements for the degree
More informationMEASURING INTERFACIAL TENSION WITH THE PENDANT DROP METHOD
MEASURING INTERFACIAL TENSION WITH THE PENDANT DROP METHOD A Thesis Presented to The Academic Faculty by Kevin K. Mohan-Nair In Partial Fulfillment of the Requirements for the Degree Bachelor of Science
More informationALGORITHMS AND INTERFACE FOR OCEAN ACOUSTIC RAY-TRACING (Developed in MATLAB)
ALGORITHMS AND INTERFACE FOR OCEAN ACOUSTIC RAY-TRACING (Developed in MATLAB) Technical Report No. NIO/TR 09/005 T.V.Ramana Murty M.M.Malleswara Rao S.Surya Prakash P.Chandramouli K.S.R.Murthy Regional
More informationIMAGE STEGANOGRAPHY USING DISCRETE COSINE TRNASFORM ALGORITHM
RCC Institute of Information Technology Canal South Road, Beliaghata, Kolkata 700 015 [Affiliated to West Bengal University of Technology] IMAGE STEGANOGRAPHY USING DISCRETE COSINE TRNASFORM ALGORITHM
More informationTREBALL FINAL DE GRAU
Estudi del procés constructiu de ponts atirantats construïts sobre suports provisionals. ANNEXOS Treball realitzat per: Joan Fraile Diana Dirigit per: José Turmo Coderque Jose Antonio Lozano Galant Grau
More informationAccepted by... John H. Lienhard V
The Understanding, Characterization, and Implementation of a SICK LMS-291 Laser Scanner for Use in an Experimental Environment by Marcos Berrios Submitted to the Department of Mechanical Engineering in
More informationUNIVERSITÀ DEGLI STUDI DI PADOVA
UNIVERSITÀ DEGLI STUDI DI PADOVA FACOLTÀ DI INGEGNERIA CORSO DI LAUREA IN INGEGNERIA BIOMEDICA DESIGN OF NEUROPHYSIOLOGICAL SIGNAL ANAYSIS SOFTWARE GIACOMO BASSETTO SUPERVISOR: PROFESSOR STEFANO VASSANELLI
More informationReal-Time IIR Digital Filters
Real-Time IIR Digital Filters Chapter 8 Introduction Infinite impulse response (IIR) filter design has its roots in traditional analog filter design. One of the main issues in IIR digital filter design
More informationKeywords: Learning automata, Vertex multicoloring.
ISSN XXXX XXXX 2018 IJESC Research Article Volume 8 Issue No.4 Scheduling Algorithm for High Density MIMO Channels C.Elayaraja 1, P.Manju 2, I.Parsana Begam 3 Associate Professor 1, Student 2, 3 Department
More informationGENDER ESTIMATION BASED ON FACIAL IMAGE AZLIN BT YAJID UNIVERSITI TEKNOLOGI MALAYSIA
GENDER ESTIMATION BASED ON FACIAL IMAGE AZLIN BT YAJID UNIVERSITI TEKNOLOGI MALAYSIA PSZ 19:16 (PIND. 1/97) UNIVERSITI TEKNOLOGI MALAYSIA BORANG PENGESAHAN STATUS TESIS JUDUL: GENDER ESTIMATION BASED ON
More informationDesign of Automated Digital Eye Palpation Exam for Intraocular Pressure Measurement
Design of Automated Digital Eye Palpation Exam for Intraocular Pressure Measurement Item Type text; Electronic Thesis Authors Luce, Alexander Vallejo Publisher The University of Arizona. Rights Copyright
More informationSandia National Laboratories: Implementation of and Experimenting with a Clustering Tool
Sandia National Laboratories: Implementation of and Experimenting with a Clustering Tool Team: Avani Gadani, Daniel Lowd, Brian Roney, Eric Wu Harvey Mudd College Dr. Belinda Thom (Advisor) Dr. Kevin Boyack
More informationFlow Control. Spring Flow Control Spring / 26
Flow Control Spring 2019 Flow Control Spring 2019 1 / 26 Relational Expressions Conditions in if statements use expressions that are conceptually either true or false. These expressions are called relational
More informationChapter 6 User-Defined Functions. dr.dcd.h CS 101 /SJC 5th Edition 1
Chapter 6 User-Defined Functions dr.dcd.h CS 101 /SJC 5th Edition 1 MATLAB Functions M-files are collections of MATLAB statements that stored in a file, called a script file. Script files share the command
More informationMATLAB. Creating Graphical User Interfaces Version 7. The Language of Technical Computing
MATLAB The Language of Technical Computing Note This revision of Creating Graphical User Interfaces, issued May 2006, adds three new chapters that provide more information for creating GUIs programmatically.
More informationEL2310 Scientific Programming
Lecture 4: Programming in Matlab Yasemin Bekiroglu (yaseminb@kth.se) Florian Pokorny(fpokorny@kth.se) Overview Overview Lecture 4: Programming in Matlab Wrap Up More on Scripts and Functions Wrap Up Last
More informationSECTION 2: PROGRAMMING WITH MATLAB. MAE 4020/5020 Numerical Methods with MATLAB
SECTION 2: PROGRAMMING WITH MATLAB MAE 4020/5020 Numerical Methods with MATLAB 2 Functions and M Files M Files 3 Script file so called due to.m filename extension Contains a series of MATLAB commands The
More informationLAMPIRAN A: LISTING PROGRAM
A-1 LAMPIRAN A: LISTING PROGRAM 1. Latih.m input = xlsread('ayam1.xlsx', 'Sheet1', 'B2:P49'); %memasukkan input dari excel file Ayam, sheet Sheet1, baris kolom 'B2:BJ17' input= input'; %transpose input
More informationIntroduction. Like other programming languages, MATLAB has means for modifying the flow of a program
Flow control 1 Introduction Like other programming languages, MATLAB has means for modying the flow of a program All common constructs are implemented in MATLAB: for while then else switch try 2 FOR loops.
More informationIntroduction to. The Help System. Variable and Memory Management. Matrices Generation. Interactive Calculations. Vectors and Matrices
Introduction to Interactive Calculations Matlab is interactive, no need to declare variables >> 2+3*4/2 >> V = 50 >> V + 2 >> V Ans = 52 >> a=5e-3; b=1; a+b Most elementary functions and constants are
More informationBlind to Change. More on Graphical User Interfaces. Exploring change blindness
Blind to Change More on Graphical User Interfaces CS112 Scientific Computation Department of Computer Science Wellesley College Exploring change blindness The human visual system can be blind to changes
More informationSpecial Topics II: Graphical User Interfaces (GUIs)
Special Topics II: Graphical User Interfaces (GUIs) December 8, 2011 Structures Structures (structs, for short) are a way of managing and storing data in most programming languages, including MATLAB. Assuming
More informationEL2310 Scientific Programming
(pronobis@kth.se) Overview Overview Wrap Up More on Scripts and Functions Basic Programming Lecture 2 Lecture 3 Lecture 4 Wrap Up Last time Loading data from file: load( filename ) Graphical input and
More informationInteractive Programs
Interactive Programs Graphical User Interfaces CS112 Scientific Computation Department of Computer Science Wellesley College Properties of graphics objects All plotting and graphics functions create graphic
More informationChemical Engineering 541
Chemical Engineering 541 Computer Aided Design Methods Matlab Tutorial 1 Overview 2 Matlab is a programming language suited to numerical analysis and problems involving vectors and matricies. Matlab =
More informationMachine Learning Exercise 0
Machine Learning Exercise 0 Introduction to MATLAB 19-04-2016 Aljosa Osep RWTH Aachen http://www.vision.rwth-aachen.de osep@vision.rwth-aachen.de 1 Experiences with Matlab? Who has worked with Matlab before?
More informationFlow Control and Functions
Flow Control and Functions Script files If's and For's Basics of writing functions Checking input arguments Variable input arguments Output arguments Documenting functions Profiling and Debugging Introduction
More informationEE368/CS232 Digital Image Processing Winter Homework #7 Solutions
1. Robustness of the SIFT Descriptor EE368/CS232 Digital Image Processing Winter 2017-2018 Homework #7 Solutions Part A: Below, we show the SIFT keypoints for the original test image, before any additional
More informationČVUT v Praze in Prague. Introduction to MATLAB
Introduction to MATLAB 1 Matlab Usage Signal processing, image processing, testing and measurement, financial modelling and analysis, computational biology, Expansions of MATLAB Toolboxes for specific
More informationComputational Methods of Scientific Programming
12.010 Computational Methods of Scientific Programming Lecturers Thomas A Herring, Jim Elliot, Chris Hill, Summary of Today s class We will look at Matlab: History Getting help Variable definitions and
More information1 >> Lecture 3 2 >> 3 >> -- Functions 4 >> Zheng-Liang Lu 169 / 221
1 >> Lecture 3 2 >> 3 >> -- Functions 4 >> Zheng-Liang Lu 169 / 221 Functions Recall that an algorithm is a feasible solution to the specific problem. 1 A function is a piece of computer code that accepts
More informationComputer Vision 2 Exercise 0. Introduction to MATLAB ( )
Computer Vision 2 Exercise 0 Introduction to MATLAB (21.04.2016) engelmann@vision.rwth-aachen.de, stueckler@vision.rwth-aachen.de RWTH Aachen University, Computer Vision Group http://www.vision.rwth-aachen.de
More information1 >> Lecture 3 2 >> 3 >> -- Functions 4 >> Zheng-Liang Lu 172 / 225
1 >> Lecture 3 2 >> 3 >> -- Functions 4 >> Zheng-Liang Lu 172 / 225 Functions The first thing of the design of algorithms is to divide and conquer. A large and complex problem would be solved by couples
More informationMatlab for Engineers
Matlab for Engineers Alistair Johnson 31st May 2012 Centre for Doctoral Training in Healthcare Innovation Institute of Biomedical Engineering Department of Engineering Science University of Oxford Supported
More informationW1005 Intro to CS and Programming in MATLAB. Data Structures. Fall 2014 Instructor: Ilia Vovsha. hep://
W1005 Intro to CS and Programming in MATLAB Data Structures Fall 2014 Instructor: Ilia Vovsha hep://www.cs.columbia.edu/~vovsha/w1005 Outline Cell arrays FuncNons with variable arguments Structure arrays
More information1 Lab 3, Simulation of crank-piston system
1 Lab 3, Simulation of crank-piston system 1.1 Problem description Simulation 3 Slider-Crank Mechanism with a Piston In your text, the slider-crank kinematic mechanism is discussed and equations of motion
More informationGUI Building for Test & Measurement Applications
by: Ahmed Abdalla, The MathWorks GUI Building for Test & Measurement Applications This article demonstrates how you can utilize the below-listed products to create a custom test and measurement GUI application
More informationJump Statements. ˆ The break statement exits a for or while loop completely.
Jump Statements ˆ The break statement exits a for or while loop completely. ˆ No longer in the loop. ˆ Aka early termination. ˆ To skip the rest of the instructions in the loop and begin the next iteration,
More informationBUILDING A MATLAB GUI. Education Transfer Plan Seyyed Khandani, Ph.D. IISME 2014
BUILDING A MATLAB GUI Education Transfer Plan Seyyed Khandani, Ph.D. IISME 2014 Graphical User Interface (GUI) A GUI is useful for presenting your final software. It makes adjusting parameters and visualizing
More informationIntel Quark microcontroller D2000 How to communicate with MATLAB over UART
Intel Quark microcontroller D2000 How to communicate with MATLAB over UART Introduction Intel System Studio 2016 for Microcontrollers is an integrated tool suite for developing, optimizing, and debugging
More informationOptimization and Implementation of Embedded Signal Processing Algorithms Jonas Rutström Senior Application Engineer
Optimization and Implementation of Embedded Signal Processing Algorithms Jonas Rutström Senior Application Engineer 2016 The MathWorks, 1 Inc. Two important questions in embedded design... 1. What s your
More informationUser Defined Functions
User Defined Functions 120 90 1 0.8 60 Chapter 6 150 0.6 0.4 30 0.2 180 0 210 330 240 270 300 Objectives Create and use MATLAB functions with both single and multiple inputs and outputs Learn how to store
More informationEE 595 (PMP) Introduction to Security and Privacy Homework 1 Solutions
EE 595 (PMP) Introduction to Security and Privacy Homework 1 Solutions Assigned: Tuesday, January 17, 2017, Due: Sunday, January 28, 2017 Instructor: Tamara Bonaci Department of Electrical Engineering
More informationOPTI 201R Homework 9 Solutions
OPTI 20R Homework 9 Solutions. Unknown thick lens system measured with reciprocal magnification technique. At the first position where the object is sharply focused on the image plane m = 2. The lens needs
More informationImage Analysis Using MATLAB
Image Analysis Using MATLAB Vatsal Sanjay, Akash Deep and Dr. Arup Kumar Das Department of Mechanical and Industrial Engineering, Indian Institute of Technology, Roorkee, India E-mail: vats1ume@iitr.ac.in
More informationIdentity-Based Decryption
Identity-Based Decryption Daniel R. L. Brown May 30, 2011 Abstract Identity-based decryption is an alternative to identity-based encryption, in which Alice encrypts a symmetric key for Bob under a trusted
More informationComputer Vision for VLFeat and more...
Computer Vision for VLFeat and more... Holistic Methods Francisco Escolano, PhD Associate Professor University of Alicante, Spain Contents PCA/Karhunen-Loeve (slides appart) GIST and Spatial Evelope Image
More informationIntroduction to Programming in MATLAB
Introduction to Programming in MATLAB User-defined Functions Functions look exactly like scripts, but for ONE difference Functions must have a function declaration Help file Function declaration Outputs
More informationCS 556: Computer Vision. Lecture 2
CS 556: Computer Vision Lecture 2 Prof. Sinisa Todorovic sinisa@eecs.oregonstate.edu 1 Basic MATLAB Commands imread size whos imshow imwrite im2double rgb2gray, im2uint8, im2bw img1 = img(1:end-4,:), img1
More informationELEC4042 Signal Processing 2 MATLAB Review (prepared by A/Prof Ambikairajah)
Introduction ELEC4042 Signal Processing 2 MATLAB Review (prepared by A/Prof Ambikairajah) MATLAB is a powerful mathematical language that is used in most engineering companies today. Its strength lies
More informationLPF Training Handbook!
LPF Training Handbook M Hewitson 2014-04-25 1. Introduction 1 2. Software setup 1 Accessing the relevant software repositories 2 Getting the software 3 Installing LTPDA 3 Installation of Extension modules
More informationIntroduction to Information Security Prof. V. Kamakoti Department of Computer Science and Engineering Indian Institute of Technology, Madras
Introduction to Information Security Prof. V. Kamakoti Department of Computer Science and Engineering Indian Institute of Technology, Madras Lecture 09 Now, we discuss about the insecurity of passwords.
More informationMATLAB for the Sciences
Error Checking,, and MATLAB Movies January 26, 2009 Making Sure Things Work Correctly All through each program we ve assumed that inputs are of a certain type and dimension. What if someone stumbles upon
More informationDigital Image Processing. Today Outline. Matlab Desktop. Matlab Basics
Today Outline Matlab Basics Intensity transform and Histogram Equalization Exercise one Basic Image Processing Digital Image Processing Teacher Assistance: Yael Pritch course email : impr@cshujiacil personal
More informationME 1020 Engineering Programming with MATLAB. Chapter 1 In-Class Assignment: 1.1, 1.3, 1.13, Topics Covered:
ME 1020 Engineering Programming with MATLAB Chapter 1 In-Class Assignment: 1.1, 1.3, 1.13, 1.16 Topics Covered: Use MATLAB as a calculator Save files to folders and open files from folders Create row vector
More informationCryptography III. Public-Key Cryptography Digital Signatures. 2/1/18 Cryptography III
Cryptography III Public-Key Cryptography Digital Signatures 2/1/18 Cryptography III 1 Public Key Cryptography 2/1/18 Cryptography III 2 Key pair Public key: shared with everyone Secret key: kept secret,
More informationLecture Notes for 04/04/06: UNTRUSTED CODE Fatima Zarinni.
Lecture Notes for 04/04/06 UNTRUSTED CODE Fatima Zarinni. Last class we started to talk about the different System Solutions for Stack Overflow. We are going to continue the subject. Stages of Stack Overflow
More informationBlock ciphers used to encode messages longer than block size Needs to be done correctly to preserve security Will look at five ways of doing this
Lecturers: Mark D. Ryan and David Galindo. Cryptography 2015. Slide: 74 Block ciphers used to encode messages longer than block size Needs to be done correctly to preserve security Will look at five ways
More informationCS1114 Assignment 5, Part 2
CS1114 Assignment 5, Part 2 out: Wednesday, April 10, 2013. due: Friday, April 19, 2013, 5PM. This assignment covers two topics in two parts: interpolation (Part 1), and featurebased image recognition
More informationUniform Resource Locators (URL)
The World Wide Web Web Web site consists of simply of pages of text and images A web pages are render by a web browser Retrieving a webpage online: Client open a web browser on the local machine The web
More informationMATLAB for Image Processing. April 2018 Rod Dockter
MATLAB for Image Processing April 2018 Rod Dockter Outline Introduction to MATLAB Basics & Examples Image Processing with MATLAB Basics & Examples What is MATLAB? MATLAB = Matrix Laboratory MATLAB is a
More informationIntroduction to Matlab
Introduction to Matlab This tour introduces the basic notions of programming with Matlab. Contents M-file scripts M-file functions Inline functions Loops Conditionals References M-file scripts A script
More informationMATLAB Tips and Tricks You Need to Know
MATLAB Tips and Tricks You Need to Know Yair Altman UndocumentedMatlab.com altmany@gmail.com Yair Altman UndocumentedMatlab.com 1 Key takeaways Tips and tricks to improve productivity with MATLAB o Usability
More informationLecture 3. Introduction to Matlab
Lecture 3 Introduction to Matlab Programming Today s Lecture Matlab programming Programming environment and search path M-file scripts and functions Flow control statements Function functions Programming
More informationFUNCTIONS ( WEEK 5 ) DR. USMAN ULLAH SHEIKH DR. MUSA MOHD MOKJI DR. MICHAEL TAN LONG PENG DR. AMIRJAN NAWABJAN DR. MOHD ADIB SARIJARI
FUNCTIONS SKEE1022 SCIENTIFIC PROGRAMMING ( WEEK 5 ) DR. USMAN ULLAH SHEIKH DR. MUSA MOHD MOKJI DR. MICHAEL TAN LONG PENG DR. AMIRJAN NAWABJAN DR. MOHD ADIB SARIJARI OBJECTIVES Create Function 1) Create
More information