Using these tools and some simple customizations we can significantly improve our Matlab programs’ usability. Many of these functions are Matlab wrappers for Java components presented in Chapter 3. Chapters 2 (Using Non-GUI Java Libraries in Matlab) and 3 (Rich GUI using Matlab Swing) describe how this internal Java engine can be used to extend Matlab, both programmatically (Chapter 2) and visually (Chapter 3).Ĭhapter 4 (Uitools) describes a set of undocumented built-in Matlab user-interface functions which use Java components. You can safely skip almost any section that you find difficult or uninteresting.Ĭhapter 1 (Introduction to Java in Matlab) provides a description of the internal Java engine shipped in Matlab. It is NOT necessary to read the book in order: the chapters and sections are mostly independent and can stand alone. This book is organized in chapters grouped by related functionality/usage and ordered from easiest (novice Java use) to advanced. drop-down, combo-box)ħ.2 FindJObj and the Java Frame Components Hierarchyĩ.1 Approaches for Java control of Matlab Reviews of the book on Amazon Table of ContentsĬHAPTER 1: INTRODUCTION TO JAVA IN MATLABġ.5 Safe Java Programming in Matlab – A How-to Guideġ.6 Compiling and Debugging User-Created Java Classes in MatlabĬHAPTER 2: USING NON-GUI JAVA LIBRARIES IN MATLABģ.1 Adding Java Swing Components to Matlab Figuresģ.2 Matlab’s Main Thread and the Event Dispatch Thread (EDT)ģ.8 Adding Matlab Components to Java Swing ContainersĬHAPTER 5: BUILT-IN MATLAB WIDGETS AND JAVA CLASSESĦ.7 Popup menu (a.k.a.
As far as I know, everything in this book is legal and within the bounds of the Matlab license agreement. In no case is illegal hacking implied or necessary for the discovery or usage of anything presented in this book.
This book shows readers how to use and discover the described components, using nothing but Matlab itself as the discovery tool. Perhaps a future book will describe them. These extra tools indeed contain many other Java-based aspects, but they are not covered in this book. No toolbox, Simulink or Stateflow is necessary for using this book – only the core Matlab product.
Java-savvy readers will find it easy to tailor code samples for their particular needs for Java newcomers, an introduction to Java and numerous online references are provided. Advanced Java concepts are sometimes used, but understanding them is not required to run the code. All code snippets and examples are self-contained and can generally be used as-is. Using Java, we can extensively customize the Matlab environment and application GUI, enabling the creation of visually appealing and usable applications.We can use Matlab for easy access to external Java functionality, either third-party or user-created.The Matlab programming environment relies on Java for numerous tasks, including networking, data-processing algorithms and graphical user-interface (GUI).
Use promo code MZK07 for a 25% discount and free worldwide shipping on Within the book’s 700 pages, thousands of code snippets, hundreds of screenshots and ~1500 online references are provided to enable the utilization of this book as both a sequential tutorial and as a random-access reference suited for immediate use. Readers are led step-by-step from simple to complex customizations. This can be done easily and even without any prior Java knowledge. This book shows how using Java can significantly improve Matlab program appearance and functionality. Undocumented Secrets of Matlab-Java Programming ( CRC Press, ISBN 9781439869031) aims to correct this. Also unfortunate is the popular claim that while Matlab is a fine programming platform for prototyping, it is not suitable for real-world, modern-looking applications. This is really quite unfortunate: Java is one of the most widely used programming languages, having many times the number of programmers and programming resources as Matlab. Quick links: Reviews Table of Contents Book organization FAQ About the author Errata listįor a variety of reasons, the Matlab-Java interface was never fully documented.