Python for MATLAB Development


Book Description

MATLAB can run Python code! Python for MATLAB Development shows you how to enhance MATLAB with Python solutions to a vast array of computational problems in science, engineering, optimization, statistics, finance, and simulation. It is three books in one: A thorough Python tutorial that leverages your existing MATLAB knowledge with a comprehensive collection of MATLAB/Python equivalent expressions A reference guide to setting up and managing a Python environment that integrates cleanly with MATLAB A collection of recipes that demonstrate Python solutions invoked directly from MATLAB This book shows how to call Python functions to enhance MATLAB's capabilities. Specifically, you'll see how Python helps MATLAB: Run faster with numba Distribute work to a compute cluster with dask Find symbolic solutions to integrals, derivatives, and series summations with SymPy Overlay data on maps with Cartopy Solve mixed-integer linear programming problems with PuLP Interact with Redis via pyredis, PostgreSQL via psycopg2, and MongoDB via pymongo Read and write file formats that are not natively understood by MATLAB, such as SQLite, YAML, and ini Who This Book Is For MATLAB developers who are new to Python and other developers with some prior experience with MATLAB, R, IDL, or Mathematica.




Introduction to Modeling and Simulation with MATLAB® and Python


Book Description

Introduction to Modeling and Simulation with MATLAB and Python is intended for students and professionals in science, social science, and engineering that wish to learn the principles of computer modeling, as well as basic programming skills. The book content focuses on meeting a set of basic modeling and simulation competencies that were developed as part of several National Science Foundation grants. Even though computer science students are much more expert programmers, they are not often given the opportunity to see how those skills are being applied to solve complex science and engineering problems and may also not be aware of the libraries used by scientists to create those models. The book interleaves chapters on modeling concepts and related exercises with programming concepts and exercises. The authors start with an introduction to modeling and its importance to current practices in the sciences and engineering. They introduce each of the programming environments and the syntax used to represent variables and compute mathematical equations and functions. As students gain more programming expertise, the authors return to modeling concepts, providing starting code for a variety of exercises where students add additional code to solve the problem and provide an analysis of the outcomes. In this way, the book builds both modeling and programming expertise with a "just-in-time" approach so that by the end of the book, students can take on relatively simple modeling example on their own. Each chapter is supplemented with references to additional reading, tutorials, and exercises that guide students to additional help and allows them to practice both their programming and analytical modeling skills. In addition, each of the programming related chapters is divided into two parts – one for MATLAB and one for Python. In these chapters, the authors also refer to additional online tutorials that students can use if they are having difficulty with any of the topics. The book culminates with a set of final project exercise suggestions that incorporate both the modeling and programming skills provided in the rest of the volume. Those projects could be undertaken by individuals or small groups of students. The companion website at http://www.intromodeling.com provides updates to instructions when there are substantial changes in software versions, as well as electronic copies of exercises and the related code. The website also offers a space where people can suggest additional projects they are willing to share as well as comments on the existing projects and exercises throughout the book. Solutions and lecture notes will also be available for qualifying instructors.




Introduction to Radar Using Python and MATLAB


Book Description

This comprehensive resource provides readers with the tools necessary to perform analysis of various waveforms for use in radar systems. It provides information about how to produce synthetic aperture (SAR) images by giving a tomographic formulation and implementation for SAR imaging. Tracking filter fundamentals, and each parameter associated with the filter and how each affects tracking performance are also presented. Various radar cross section measurement techniques are covered, along with waveform selection analysis through the study of the ambiguity function for each particular waveform from simple linear frequency modulation (LFM) waveforms to more complicated coded waveforms. The text includes the Python tool suite, which allows the reader to analyze and predict radar performance for various scenarios and applications. Also provided are MATLAB® scripts corresponding to the Python tools. The software includes a user-friendly graphical user interface (GUI) that provides visualizations of the concepts being covered. Users have full access to both the Python and MATLAB source code to modify for their application. With examples using the tool suite are given at the end of each chapter, this text gives readers a clear understanding of how important target scattering is in areas of target detection, target tracking, pulse integration, and target discrimination.




Python for Mechanical and Aerospace Engineering


Book Description

The traditional computer science courses for engineering focus on the fundamentals of programming without demonstrating the wide array of practical applications for fields outside of computer science. Thus, the mindset of “Java/Python is for computer science people or programmers, and MATLAB is for engineering” develops. MATLAB tends to dominate the engineering space because it is viewed as a batteries-included software kit that is focused on functional programming. Everything in MATLAB is some sort of array, and it lends itself to engineering integration with its toolkits like Simulink and other add-ins. The downside of MATLAB is that it is proprietary software, the license is expensive to purchase, and it is more limited than Python for doing tasks besides calculating or data capturing. This book is about the Python programming language. Specifically, it is about Python in the context of mechanical and aerospace engineering. Did you know that Python can be used to model a satellite orbiting the Earth? You can find the completed programs and a very helpful 595 page NSA Python tutorial at the book’s GitHub page at https://www.github.com/alexkenan/pymae. Read more about the book, including a sample part of Chapter 5, at https://pymae.github.io




MATLAB® Recipes for Earth Sciences


Book Description

Introduces methods of data analysis in geosciences using MATLAB such as basic statistics for univariate, bivariate and multivariate datasets, jackknife and bootstrap resampling schemes, processing of digital elevation models, gridding and contouring, geostatistics and kriging, processing and georeferencing of satellite images, digitizing from the screen, linear and nonlinear time-series analysis and the application of linear time-invariant and adaptive filters. Includes a brief description of each method and numerous examples demonstrating how MATLAB can be used on data sets from earth sciences.




Computational Framework for the Finite Element Method in MATLAB® and Python


Book Description

Computational Framework for the Finite Element Method in MATLAB® and Python aims to provide a programming framework for coding linear FEM using matrix-based MATLAB® language and Python scripting language. It describes FEM algorithm implementation in the most generic formulation so that it is possible to apply this algorithm to as many application problems as possible. Readers can follow the step-by-step process of developing algorithms with clear explanations of its underlying mathematics and how to put it into MATLAB and Python code. The content is focused on aspects of numerical methods and coding FEM rather than FEM mathematical analysis. However, basic mathematical formulations for numerical techniques which are needed to implement FEM are provided. Particular attention is paid to an efficient programming style using sparse matrices. Features Contains ready-to-use coding recipes allowing fast prototyping and solving of mathematical problems using FEM Suitable for upper-level undergraduates and graduates in applied mathematics, science or engineering Both MATLAB and Python programming codes are provided to give readers more flexibility in the practical framework implementation




Quickstart Python


Book Description

Christoph Schäfer introduces the great world of programming with Python and provides a quick introduction to independent script development. He points out how the programming language Python has established itself in recent years alongside MATLAB and R as a standard at scientific workplaces in research and development, and shows that the great popularity of Python is based on its easy extensibility: It is very easy to use modules from other developers in your own scripts and programs. In particular, the author presents the modules NumPy, SciPy and Matplotlib, which offer scientists and engineers a perfect development environment for scientific and technical computing, for applications in physics, chemistry, biology and computer science. Python is also used in the latest applications in the highly topical fields of Big Data Science and Machine Learning. The author: Dr. Christoph Schäfer teaches and researches in the Department of Computational Physics at the Institute of Astronomy and Astrophysics at the Eberhard Karls University of Tübingen. This Springer essential is a translation of the original German 1st edition essentials, Schnellstart Python by Christoph Schäfer, published by Springer Fachmedien Wiesbaden GmbH, part of Springer Nature in 2019. The translation was done with the help of artificial intelligence (machine translation by the service DeepL.com). A subsequent human revision was done primarily in terms of content, so that the book will read stylistically differently from a conventional translation. Springer Nature works continuously to further the development of tools for the production of books and on the related technologies to support the authors.




Python Programming


Book Description

This book is suitable for use in a university-level first course in computing (CS1), as well as the increasingly popular course known as CS0. It is difficult for many students to master basic concepts in computer science and programming. A large portion of the confusion can be blamed on the complexity of the tools and materials that are traditionally used to teach CS1 and CS2. This textbook was written with a single overarching goal: to present the core concepts of computer science as simply as possible without being simplistic.




Data-Driven Science and Engineering


Book Description

A textbook covering data-science and machine learning methods for modelling and control in engineering and science, with Python and MATLAB®.




A Primer on Scientific Programming with Python


Book Description

The book serves as a first introduction to computer programming of scientific applications, using the high-level Python language. The exposition is example and problem-oriented, where the applications are taken from mathematics, numerical calculus, statistics, physics, biology and finance. The book teaches "Matlab-style" and procedural programming as well as object-oriented programming. High school mathematics is a required background and it is advantageous to study classical and numerical one-variable calculus in parallel with reading this book. Besides learning how to program computers, the reader will also learn how to solve mathematical problems, arising in various branches of science and engineering, with the aid of numerical methods and programming. By blending programming, mathematics and scientific applications, the book lays a solid foundation for practicing computational science. From the reviews: Langtangen ... does an excellent job of introducing programming as a set of skills in problem solving. He guides the reader into thinking properly about producing program logic and data structures for modeling real-world problems using objects and functions and embracing the object-oriented paradigm. ... Summing Up: Highly recommended. F. H. Wild III, Choice, Vol. 47 (8), April 2010 Those of us who have learned scientific programming in Python ‘on the streets’ could be a little jealous of students who have the opportunity to take a course out of Langtangen’s Primer.” John D. Cook, The Mathematical Association of America, September 2011 This book goes through Python in particular, and programming in general, via tasks that scientists will likely perform. It contains valuable information for students new to scientific computing and would be the perfect bridge between an introduction to programming and an advanced course on numerical methods or computational science. Alex Small, IEEE, CiSE Vol. 14 (2), March /April 2012 “This fourth edition is a wonderful, inclusive textbook that covers pretty much everything one needs to know to go from zero to fairly sophisticated scientific programming in Python...” Joan Horvath, Computing Reviews, March 2015