Matlab.

Slides:



Advertisements
Similar presentations
The Complete Technical Analysis and Development Environment An attractive alternative to MATLAB and GAUSS - Physics World.
Advertisements

Introduction to MATLAB The language of Technical Computing.
Programming Paradigms and languages
Engineering Computation using MATLAB
MATLAB Presented By: Nathalie Tacconi Presented By: Nathalie Tacconi Originally Prepared By: Sheridan Saint-Michel Originally Prepared By: Sheridan Saint-Michel.
Data Analytics and Dynamic Languages Lee E. Edlefsen, Ph.D. VP of Engineering 1.
Programming Languages Structure
What is R Muhammad Omer. What is R  R is the programing language software for statistical computing and data analysis  The R language is extensively.
Digital Image Processing Lecture3: Introduction to MATLAB.
What is R By: Wase Siddiqui. Introduction R is a programming language which is used for statistical computing and graphics. “R is a language and environment.
© 2004 The MathWorks, Inc. 1 MATLAB for C/C++ Programmers Support your C/C++ development using MATLAB’s prebuilt graphics functions and trusted numerics.
MATLAB Lecture One Monday 4 July Matlab Melvyn Sim Department of Decision Sciences NUS Business School
ROOT: A Data Mining Tool from CERN Arun Tripathi and Ravi Kumar 2008 CAS Ratemaking Seminar on Ratemaking 17 March 2008 Cambridge, Massachusetts.
CIS 601 MATLAB First Impressions. MATLAB This introduction will give Some basic ideas Main advantages and drawbacks compared to other languages.
Introduction to MATLAB adapted from Dr. Rolf Lakaemper.
Introduction to MATLAB Session 1 Prepared By: Dina El Kholy Ahmed Dalal Statistics Course – Biomedical Department -year 3.
You can make this in matlab!. Matlab Introduction and Matrices.
Introduction to M ATLAB EE 100 – EE Dept. - JUST.
Eng Advanced Marine Vehicles Todays agenda: Lab tomorrow at 2pm (structures lab) ‏ Advanced Marine Party Introduction to Matlab.
Objectives Understand what MATLAB is and why it is widely used in engineering and science Start the MATLAB program and solve simple problems in the command.
A L I MAM M OHAMMAD B IN S AUD I SLAMIC U NIVERSITY C OLLEGE OF S CIENCES D EPARTMENT OF M ATHEMATICS MATLAB 251 : MATH SOFTWARE Introduction to MATLAB.
Eng Ship Structures 1 Introduction to Matlab.
1 Computer Programming (ECGD2102 ) Using MATLAB Instructor: Eng. Eman Al.Swaity Lecture (1): Introduction.
Getting Started with MATLAB 1. Fundamentals of MATLAB 2. Different Windows of MATLAB 1.
MATLAB Harri Saarnisaari, Part of Simulations and Tools for Telecommunication Course.
Basics of MATLAB By DR. Wafaa Shabana
Matlab 14.html Cost: $100 Available in labs on Windows and Unix machines.
Introduction to MATLAB adapted from Dr. Rolf Lakaemper.
Chapter 1: Brief Overview of MATLAB MATLAB for Scientist and Engineers Using Symbolic Toolbox.
Matlab Tutorial (material available at 1 Dr. Jim Martin Associate Professor School of Computing.
EGR 115 Introduction to Computing for Engineers Introduction to Computer Programming Wednesday 27 Aug 2014 EGR 115 Introduction to Computing for Engineers.
CIS 595 MATLAB First Impressions. MATLAB This introduction will give Some basic ideas Main advantages and drawbacks compared to other languages.
CIS 601 Fall 2003 Introduction to MATLAB Longin Jan Latecki Based on the lectures of Rolf Lakaemper and David Young.
NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS ( NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS (PRACTICAL PART) Tutorial 2 : Matlab - Getting Started.
CIS 595 MATLAB First Impressions. MATLAB This introduction will give Some basic ideas Main advantages and drawbacks compared to other languages.
Matlab Tutorial (material available at 1 Dr. Jim Martin Associate Professor School of Computing.
Data Summit 2016 H104: Building Hadoop Applications Abhik Roy Database Technologies - Experian LinkedIn Profile:
A quick guide to other statistical software
CST 1101 Problem Solving Using Computers
Introduction to Matlab
Visit for more Learning Resources
Learning to Program D is for Digital.
MATLAB Distributed, and Other Toolboxes
Introduction to Matlab
Introduction to Mat lab
Lecture: MATLAB Chapter 1 Introduction
Software for scientific calculations
MatLab Programming By Kishan Kathiriya.
MATLAB Basics Nafees Ahmed Asstt. Professor, EE Deptt DIT, DehraDun.
Introduction to MATLAB
2) Platform independent 3) Predefined functions
INTRODUCTION TO BASIC MATLAB
MATLAB DENC 2533 ECADD LAB 9.
(Mohammed Sami) Ashhab
Matlab Workshop 9/22/2018.
Introduction to MATLAB
StatLab Matlab Workshop
Digital Image Processing using MATLAB
Part I – Matlab Basics.
Use of Mathematics using Technology (Maltlab)
Data Warehousing and Data Mining
Digital Image Processing
Communication and Coding Theory Lab(CS491)
CSE 307 Basics of Image Processing
Matlab Basic Dr. Imtiaz Hussain
Experiment No. (1) - an introduction to MATLAB
Simulation And Modeling
Introduction to Matlab
Big DATA.
Introduction To MATLAB
Presentation transcript:

Matlab

MATLAB is a multi-paradigm numerical computing environment fourth-generation programming language. A proprietary programming language developed by MathWorks In 2004, MATLAB had around one million users across industry and academia. Cleve Moler, the chairman of the computer science department at the University of New Mexico, started developing MATLAB in the late 1970s

Become a Friend of Matlab Why? It has very attractive visualizations It wants to be your friend: Very easy to learn Great HELP menu and tutorial Very useful: From a simple calculator to complex data analysis toolbox. Many implemented algorithms. We all have experimental data that we need to quantify, analyze, and visualize (in a certain way – for a paper etc…) We usually need to repeat our experiments and analysis more than one time

What Is MATLAB? MATLAB (MATrix LABoratory) Typical uses include: high-performance language for technical computing computation, visualization, and programming in an easy-to-use environment Typical uses include: Math and computation Algorithm development Modelling, simulation, and prototyping Data analysis, exploration, and visualization Scientific and engineering graphics Application development, including Graphical User Interface building

Why Matlab? A good choice for vision program development because: Easy to do very rapid prototyping Quick to learn, and good documentation A good library of image processing functions Excellent display capabilities Widely used for teaching and research in universities and industry Another language to impress your boss with !

MATLAB Components MATLAB consists of: The MATLAB language a high-level matrix/array language with control flow statements, functions, data structures, input/output, and object-oriented programming features. The MATLAB working environment the set of tools and facilities that you work with as the MATLAB user or programmer, including tools for developing, managing, debugging, and profiling Handle Graphics the MATLAB graphics system. It includes high-level commands for two-dimensional and three-dimensional data visualization, image processing, animation, and presentation graphics.

MATLAB Components The MATLAB function library. a vast collection of computational algorithms ranging from elementary functions like sum, sine, cosine, and complex arithmetic, to more sophisticated functions like matrix inverse, matrix eigenvalues, Bessel functions, and fast Fourier transforms as well as special image processing related functions The MATLAB Application Program Interface (API) a library that allows you to write C and Fortran programs that interact with MATLAB. It include facilities for calling routines from MATLAB (dynamic linking), calling MATLAB as a computational engine, and for reading and writing MAT-files.

Some facts for a first impression Everything in MATLAB is a matrix ! MATLAB is an interpreted language, no compilation needed (but possible) MATLAB does not need any variable declarations, no dimension statements, has no packaging, no storage allocation, no pointers Programs can be run step by step, with full access to all variables, functions etc.

The Matlab environment

EVERYTHING IN MATLAB IS A MATRIX ! What does Matlab code look like? Remember: EVERYTHING IN MATLAB IS A MATRIX ! Another simple example: t = 0:pi/100:2*pi; y = sin(t); plot(t,y) creates 1 x 200 Matrix Argument and result: 1 x 200 Matrix

What does Matlab code look like? A simple example: a = 1 while length(a) < 10 a = [0 a] + [a 0] end which prints out Pascal’s triangle: 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1 1 6 15 20 15 6 1 1 7 21 35 35 21 7 1 1 8 28 56 70 56 28 8 1 1 9 36 84 126 126 84 36 9 1 (with “a=” before each line).

What does Matlab code look like? Another simple example: t = 0:pi/100:2*pi; y = sin(t); plot(t,y)

Matrices:

Matrices 2 7 4 2 7 4 2 7 4 3 8 9 Building matrices with [ ]:

Matrices:

Variables Don’t have to declare type Don’t even have to initialise Just assign in command window

Variable type:

Matlab Arithmetic Operators

Matlab Special Numbers

Try Matlab as a Calculator

workspace The workspace is Matlab’s memory Can manipulate variables stored in the workspace Display contents of workspace >> whos Name Size Bytes Class a 1x1 8 double array b 1x1 8 double array c 1x1 8 double array Delete variable(s) from workspace >> clear all; % delete all variables from workspace

Manipulating Matrices A ' % transpose B*A % matrix multiplication B.*A % element by element multiplication B/A % matrix division B./A % element by element division [B A] % Join matrices (horizontally) [B; A] % Join matrices (vertically)

Data analysis workflow:

Big Data with MATLAB MATLAB® makes it easy to analyze and visualize your big data so you can improve the design, performance, and reliability of your products. MATLAB is: Easy : Don’t know big data programming? Use familiar MATLAB functions and syntax to work with big datasets, even if they don’t fit in memory. Convenient : Work with the big data storage systems you already use. MATLAB works with your existing systems. Access big data stored in traditional file systems, SQL and NoSQL databases, and Hadoop/HDFS. Scalable : Use the processing platform that suits your needs. Because MATLAB works with your existing systems, you can optimally process your algorithms – without having to rewrite them – using anything from your local desktop machine to Hadoop and Spark. http://www.mathworks.com/solutions/big-data-matlab/index.html

Tree data structure as a MATLAB class A tree is a hierarchical data structure where every node has exactly one parent (expect the root) and no or several children. Along with this relational structure, each node can store any kind of data. This class implements it using plain MATLAB syntax and arrays. Most useful methods are implemented, using overloading of MATLAB functions for tree objects.

@tree http://tinevez.github.io/matlab-tree/index.html This page serves as a basic documentation or tutorial for the @tree class. This tutorial is split into several sections, normally independent. It is a good idea however to read them in order: Introduction to trees, the tree class, and basic information. Creating, modifying and accessing a tree. MATLAB operators for trees. Special trees and methods. Searching a tree. Tree traversal. Plotting a tree.

Machine Learning with MATLAB Engineers and data scientists work with large amounts of data in a variety of formats such as sensor, image, video, telemetry, databases, and more. They use machine learning to find patterns in data and to build models that predict future outcomes based on historical data. With MATLAB®, you have immediate access to prebuilt functions, extensive toolboxes, and specialized apps for classification, regression, and clustering. You can: Compare approaches such as logistic regression, classification trees, support vector machines, ensemble methods, and deep learning. Use model refinement and reduction techniques to create an accurate model that best captures the predictive power of your data. Integrate machine learning models into enterprise systems, clusters, and clouds, and target models to real-time embedded hardware. https://www.mathworks.com/solutions/machine-learning/examples.html?s_iid=solew_trial_mlr_cta1