Question? Leave a message!




Introduction to Matlab & Data Analysis

Introduction to Matlab & Data Analysis 8
NancyWest Profile Pic
NancyWest,Germany,Professional
Published Date:12-07-2017
Website URL
Comment
Introduction to Matlab & Data Analysis Lecture 1: Introduction Lecture time: Sunday 11:15-13:00 FGS C Eran Eden, Weizmann 2008 © 1 Team members  Lecturers:  Natalie Kalev-Kronik kalev001umn.edu  Anat Tzimmer  Guest Lecturers:  Tutors:  Anat Tzimmer  Gil Farkash  Ayelet Sarel  Exercise checker:  Gil Farkash  Ayelet Sarel 2 Tips / formalities  Course website http://www.weizmann.ac.il/midrasha/courses/MatlabIntro  The website contains  Course material: Lectures + tutorials + other Matlab resources  HW and solutions  News  Where can I do the HW?  On any pc computer at Weizmann (installation of Matlab will be discussed in the first tutorial)  In the tutorial class  Grade  HWs 60% + 40% Final Project  Course references  Matlab built-in tutorials and references 3 Tips / formalities  Signing up for one of the tutorials Feinberg B (1) Sunday 9:15-11 (2) Wednesday 9:15-11 There may be some changes during the semester  HW assistance at the computer room Once a week in Feinberg B With Ex. Checker 4 Course overview  Introduction to Matlab  Matlab building blocks: 1D 2D and 3D  Producing publication quality graphs arrays  Solving ODEs for a living:  Simple data analysis and graphics Math modeling of cancer treatment (Natalie)  Control and boolean logic  Loops  Functions and program design  Cells, structures and Files  Simple algorithms and complexity  Debugger  GUI toolbox 5 For whom is the course intended? • For students with no or little experience of Matlab- first two thirds of the course. • Please note that the workload is heavy and each assignment may take a few hours. • Submit HW with a study partner. • Some overlap or unsynchronized material may occur (lecture, tutorial, HW). 6 What is the course about? (1) Programming in Matlab (2) Tackling data analysis problems with Matlab 7 What is the course about? Example 1 of a data analysis problem CAGCATATTTGAAGCCGGGCCCACACACAATTGGGGAACGGATCCCCGCGGCCTCCCGGCA GACCCCGTCCGGCACGACGACGAAGAAGGGGAGGATGAAGTCGAATTTGAAGCGGATGAAG GATGAGGAGAGTGACGAAGAAGAGGACGAAGACGACGAGGTCCTTGACGAGGAAGTGAACT ATTGAATTTGAAGCTTATTCCATCTCAGATAATGATTATGACGGAATTAAGAAATTACTAG CAGCAGCTTTTCCTAAAGGCTCCTGTGAACACTGCAGAACTAACAGATCTCTTAATTCATA CAGAACCATATTGGAAGTGTGAATTTGAAGCTTAAGCAAACAAATGTTTCAGAAGACAGCG ATGATGATGATGCAGATGAAGATGAAATTTTTGGTTTCATAAGCCTTTTAAATTTAACTGA AAGAAAGGTACCCAGTGTGCTGAACAAATTAAAGAGTTGGTATTTGAAGCGGGTGAGAAGA ACTGTAAAGAATTTGAAGCGGCAGCTGGACAAGCTTTTAAATGACACCACCAAGCCTGTGG GCTTTCTCCTAAGTGAAAGATTCATTAATGTCCCTCCTCAGATTGCTCTGCCCATGCACCA GCAGCTTCAGAAAGAATTTGAAGCAATTTGAAGCCTAGTATTTGAAGCTTCTACCTTCTGA GACCCCGTCCGGCACGACGACGAAGAAGGGGAGGATGAAGTCGAGGATGAAGACGAAGATC GATGAGGAGAGTGACGAAGAAGAGGATTTGAAGCACGAAGACGACGAGGTCCTTGACGAGG AAGTGAATATTGAATTTGAAGCTTATTCCATCTCAGATAATGATTATGACGGAATTAAGAA ATTACTGCAGCAATTTGAAGCAAAGGCTCCTGTGAACACTGCAGATTTGAAGCAACTAACA ATTCAACAGAACCATATTGGAAGTGTGATTAAGCAAACAAATGTTTCAGAAGACAGCGATG ATGATGATGCATTTGAAGCAGATGAAGATGAAATTTTTGGTTTCATAAGCCTTTTAAATTT CTAATAAGCCATGTGGGAAGTGCTCTTTCTACCTTATTTGAAGCACACCATTTGTGGAAGA ATTACTGCAGCAATTTGAAGCAAAGGCTCCTGTGAACACTGCAGATTTGAAGCAACTAACA 8 What is the course about? Example 1 of a data analysis problem Identifying repeating motifs CAGCATATTTGAAGCCGGGCCCACACACAATTGGGGAACGGATCCCCGCGGCCTCCCGGCA GACCCCGTCCGGCACGACGACGAAGAAGGGGAGGATGAAGTCGAATTTGAAGCGGATGAAG GATGAGGAGAGTGACGAAGAAGAGGACGAAGACGACGAGGTCCTTGACGAGGAAGTGAACT ATTGAATTTGAAGCTTATTCCATCTCAGATAATGATTATGACGGAATTAAGAAATTACTAG CAGCAGCTTTTCCTAAAGGCTCCTGTGAACACTGCAGAACTAACAGATCTCTTAATTCATA CAGAACCATATTGGAAGTGTGAATTTGAAGCTTAAGCAAACAAATGTTTCAGAAGACAGCG ATGATGATGATGCAGATGAAGATGAAATTTTTGGTTTCATAAGCCTTTTAAATTTAACTGA AAGAAAGGTACCCAGTGTGCTGAACAAATTAAAGAGTTGGTATTTGAAGCGGGTGAGAAGA ACTGTAAAGAATTTGAAGCGGCAGCTGGACAAGCTTTTAAATGACACCACCAAGCCTGTGG GCTTTCTCCTAAGTGAAAGATTCATTAATGTCCCTCCTCAGATTGCTCTGCCCATGCACCA GCAGCTTCAGAAAGAATTTGAAGCAATTTGAAGCCTAGTATTTGAAGCTTCTACCTTCTGA GACCCCGTCCGGCACGACGACGAAGAAGGGGAGGATGAAGTCGAGGATGAAGACGAAGATC GATGAGGAGAGTGACGAAGAAGAGGATTTGAAGCACGAAGACGACGAGGTCCTTGACGAGG AAGTGAATATTGAATTTGAAGCTTATTCCATCTCAGATAATGATTATGACGGAATTAAGAA ATTACTGCAGCAATTTGAAGCAAAGGCTCCTGTGAACACTGCAGATTTGAAGCAACTAACA ATTCAACAGAACCATATTGGAAGTGTGATTAAGCAAACAAATGTTTCAGAAGACAGCGATG ATGATGATGCATTTGAAGCAGATGAAGATGAAATTTTTGGTTTCATAAGCCTTTTAAATTT CTAATAAGCCATGTGGGAAGTGCTCTTTCTACCTTATTTGAAGCACACCATTTGTGGAAGA ATTACTGCAGCAATTTGAAGCAAAGGCTCCTGTGAACACTGCAGATTTGAAGCAACTAACA 9 What is the course about? Example 2 of a data analysis problem 10 21 10 21 73 21 18 21 10 4 8 21 3 21 10 45 8 21 2 21 Image processing 10 What is the course about? Example 3 of data analysis problems Signal processing 11 What is the course about? (1) Programming in Matlab (2) Tackling data analysis problems with Matlab (3) Learn how to learn Matlab by yourself 12 Why Matlab?  Easy to learn  Easy to debug  Great tool for scientific work  Exploring your data  Visualizing your data  Many useful “apps” 13 Matlab’s main disadvantage…  It’s slower than other programming languages.  (unless you use the compiler)… 14 Background - computers Output Processing unit Input 15 Background - hardware CPU Memory 16 Background - hardware A central processing unit (CPU), is the hardware within a CPU computer that carries out the instructions of a computer program by performing the basic arithmetical, logical, and input/output operations of the system. (Wikipedia). In computing, memory refers to the physical devices used Memory to store programs (sequences of instructions) or data (e.g. program state information) on a temporary or permanent basis for use in a computer or other digital electronic device. (Wikipedia). Not to be confused with the data storage such as SSD and hard disk. 17 Background - software High level languages C, C++, C, Java, Pascal, Perl, Lisp, Matlab Examples: Low level language Example: Assembly Machine language Example: 0111010101111101… Another important player: The operating system 18 The Matlab environment First we need to Open Matlab 19 The Matlab environment Opening/saving a file Changing current directory Prompt / Command line The command window Files and Directories inside the current directory workspace 20