Showing posts with label MATLAB Basics. Show all posts
Showing posts with label MATLAB Basics. Show all posts

Thursday, July 24, 2025

Multiple Ways to Display Numbers in MATLAB: A Beginner’s Guide

MATLABit

MATLAB, short for MATrix LABoratory, is a powerful programming language and integrated software environment developed by MathWorks. It is widely used in engineering, scientific research, academic instruction, and algorithm development due to its strengths in numerical computation, data analysis, graphical visualization, and simulation. Built on the principles of matrix algebra, MATLAB efficiently handles large datasets and complex mathematical models. With this solid foundation, we can now explore the different ways of displaying numbers in MATLAB to suit various needs, such as formatting outputs, controlling precision, and presenting data in a clear, readable manner.

🌸MATLAB Format Ways in Editor Window 🌸

🌸MATLAB Format Ways in Command Window 🌸

Table of Contents

Introduction

In MATLAB, users are provided with the flexibility to customize how numerical output is displayed on the screen. By dereliction, MATLAB displays numerical values in the short format, which is a fixed- point format with four integers following the decimal point. This concise display is often sufficient for general use, but MATLAB also supports a variety of alternative formats to suit different levels of precision or readability requirements. To modify the way results are shown, users can utilize the format command. This command allows the output display style to be changed dynamically during a session. Once a new format is specified using this command, all subsequent numerical output will adhere to the selected display style until it is changed again. This feature is particularly useful when working with very large or very small numbers, or when a higher degree of precision is necessary for analysis or reporting.

Significance

The significance of displaying numbers in the MATLAB Command Window and Editor Window lies in the way MATLAB enables users to interact with numerical data clearly, accurately, and efficiently during computation and analysis. Displaying numbers in the Command Window provides immediate feedback, allowing users to observe results as soon as a command is executed, which is essential for understanding how mathematical operations behave and for verifying whether calculations are producing expected outcomes. This interactive display supports exploratory learning, where users can experiment with different inputs, observe numerical changes in real time, and develop intuition about mathematical relationships without the need for complex output handling. At the same time, the Editor Window plays a complementary role by allowing users to organize numerical computations within scripts and functions, ensuring that displayed results are not only correct but also reproducible and well-documented. The clear presentation of numbers helps users identify errors, such as unexpected magnitudes, incorrect signs, or rounding issues, which might otherwise remain unnoticed in large or complex computations. MATLAB’s ability to control numerical display formats, including precision and notation, further enhances the significance of numerical output by allowing users to view results in a form that best suits the problem at hand, whether it involves small decimals, large scientific values, or exact integers. Displaying numbers is also crucial for debugging, as intermediate values shown in the Command Window or through output statements in the Editor Window enable users to trace the flow of computations step by step and pinpoint the source of logical or numerical mistakes. In educational contexts, visible numerical output strengthens conceptual understanding by linking mathematical theory to concrete results, helping students see how abstract equations translate into actual numbers. This visibility fosters confidence and encourages deeper engagement with problem solving. In research and professional environments, the proper display of numerical results supports transparency and reliability, as clearly presented outputs make it easier to interpret findings, validate models, and communicate results to others. MATLAB’s numerical display capabilities also play an important role in performance analysis, as users can assess convergence behavior, accuracy, and stability by examining displayed values during iterative computations. Moreover, the combination of immediate Command Window output and structured Editor-based scripts allows users to balance rapid experimentation with disciplined programming, which is essential for efficient workflow development. Displaying numbers effectively also aids in comparing results across different methods or parameter settings, enabling informed decision making based on quantitative evidence. As computational tasks grow in complexity, the ability to clearly view and interpret numerical outputs becomes increasingly important for maintaining accuracy and avoiding misinterpretation. Overall, the significance of displaying numbers in the MATLAB Command Window and Editor Window lies in its contribution to clarity, learning, debugging, reproducibility, and effective communication, making numerical output an integral part of successful mathematical and computational problem solving in MATLAB.

Multiple Displaying Styles of Numbers in MATLAB

MATLAB provides a rich set of formatting options for displaying numerical values, allowing users to tailor the appearance of output according to their specific needs—whether for readability, precision, or presentation. These display formats control only how numbers are shown in the Command Window and have no impact on the underlying computations or the way values are stored in memory. To view the complete list of supported display formats along with brief descriptions, users can simply enter the command help format in the MATLAB Command Window. This will provide a comprehensive overview, enabling more informed choices for presenting numerical results during analysis, debugging, or reporting.

MATLAB Output Display Formats Example (375 / 8)

Format Description Example Output
format short Displays numbers in fixed-point notation with 4 decimal places (default) 375 / 8 46.8750
format long Displays numbers in fixed-point notation with up to 15 decimal places 375 / 8 46.875000000000000
format short e Scientific notation with 4 digits after the decimal point 375 / 8 4.6875e+001
format long e Scientific notation with 15 digits after the decimal point 375 / 8 4.687500000000000e+001
format short g Uses the more compact of fixed-point or scientific notation with up to 5 significant digits 375 / 8 46.875
format long g Automatically switches between fixed-point and scientific format with up to 15 significant digits 375 / 8 46.875
format bank Displays values with exactly two decimal places—ideal for monetary calculations 375 / 8 46.88
format compact Minimizes blank lines in the output—provides a tighter display Affects spacing only; does not alter number format
format loose Expands output with extra blank lines—easier to read Affects spacing only; does not alter number format

Applications

The ability to control numerical display formats in MATLAB has a wide range of practical applications across different fields. In engineering and scientific research, precise output formatting is essential when interpreting results that require high numerical accuracy, such as simulations, numerical methods, and error analysis. Financial analysts often use formats like format bank to present currency data with fixed decimal places, making reports more readable and standardized. Educators and students benefit from simplified formats, such as format short or format compact, to make classroom demonstrations or assignments clearer and more concise. Additionally, when debugging complex algorithms or visualizing trends in data, switching between display formats—like scientific notation or floating-point—can offer deeper insights. Ultimately, MATLAB’s flexible formatting tools enhance both the clarity and professionalism of numerical output, making it easier to communicate results effectively across various disciplines.

Conclusion

MATLAB Display Formats – Conclusion

  • 🔢 MATLAB offers a wide range of display formats for controlling how numbers appear in the Command Window.
  • ✨ The default format, short, shows numbers with four decimal digits, but users can easily switch to formats like long, bank, or short e.
  • 🧮 These formats affect only the visual output — not how MATLAB performs internal calculations or stores data.
  • 🔬 Useful in fields like engineering, scientific computing, finance, and education for better data interpretation and presentation.
  • 📘 To explore all available options, type help format in the MATLAB Command Window.
  • 🛠️ By mastering format controls, users can make their output more precise, readable, and professional.

© 2025 MATLABit. All rights reserved.

Monday, July 21, 2025

Mathematical Operations Using MATLAB: A Beginner’s Guide

MATLABit

MATLAB, short for MATrix LABoratory, is a powerful programming language and integrated software environment developed by MathWorks. It is widely used in engineering, scientific research, academic instruction, and algorithm development due to its strong capabilities in numerical computation, data analysis, graphical visualization, and simulation. Built on the principles of matrix algebra, MATLAB efficiently handles large datasets and complex mathematical models. With this foundation, we can begin exploring MATLAB’s capabilities by performing mathematical operations and using it as a calculator to execute calculations quickly and accurately.

Table of Contents

Mathematical Operations

In this chapter, we focus exclusively on arithmetic operations with scalars, which are simply numbers.

Scalars can be used in calculations in two ways:

  • Directly, just like you would on a calculator
  • Through variables, where numbers are first assigned to variables and then used in expressions

Below is a list of common arithmetic operations along with their symbols and examples. These operations are similar to what you'd find on most calculators, except for left division, which is used primarily in array operations.

Operation Symbol Example Description
Addition + 8 + 2 Adds two numbers
Subtraction - 10 - 4 Subtracts second number from the first
Multiplication * 6 * 7 Multiplies two numbers
Right Division / 12 / 4 Divides 12 by 4 (normal division)
Left Division \ 12 \ 4 Equivalent to 4 / 12 (inverse of right division for scalars)
Exponentiation ^ 3 ^ 4 Raises 3 to the power of 4 (i.e., 3⁴ = 81)

Significance

Mathematical operations using MATLAB hold significant importance in modern education, research, and engineering practice because MATLAB provides a powerful and intuitive environment for performing, analyzing, and visualizing mathematical computations with high accuracy and efficiency. MATLAB enables users to work seamlessly with numbers, vectors, matrices, and multidimensional arrays, which are fundamental elements of mathematical modeling and scientific computation. By offering built-in support for arithmetic operations, linear algebra, calculus, statistics, and symbolic mathematics, MATLAB allows complex mathematical tasks to be executed with minimal code while maintaining clarity and precision. This capability is especially valuable for students and beginners, as it reduces the cognitive burden associated with manual calculations and low-level programming, allowing them to focus on understanding mathematical concepts and their practical implications. At the same time, MATLAB encourages structured thinking, as users must clearly define variables, operations, and workflows, which strengthens analytical and problem-solving skills. The significance of mathematical operations in MATLAB also lies in its ability to handle large datasets and perform high-speed computations that would be impractical or error-prone if done manually, making it an essential tool in research and industrial environments. MATLAB’s matrix-based architecture aligns naturally with mathematical theory, enabling users to express equations and transformations in a form that closely resembles textbook notation, which enhances readability and reduces the likelihood of mistakes. Furthermore, MATLAB provides extensive functions for numerical methods, such as solving systems of equations, performing numerical integration and differentiation, and optimizing mathematical models, which are crucial for scientific simulations and engineering design. Another important aspect of MATLAB’s significance is its powerful visualization capabilities, which allow mathematical results to be presented through graphs, plots, and figures that improve interpretation and insight. Visualization helps users verify results, identify patterns, and understand the behavior of mathematical models more effectively than numerical output alone. MATLAB also supports symbolic computation, enabling users to perform exact mathematical operations, derive formulas, and manipulate expressions symbolically, which is particularly beneficial in theoretical studies and advanced research. In addition, MATLAB promotes reproducibility and reliability in mathematical analysis by allowing computations to be documented, saved, and reused through scripts and functions, ensuring that results can be verified and extended over time. The integration of mathematical operations with application-specific toolboxes further increases MATLAB’s relevance, as it allows mathematical methods to be directly applied to fields such as signal processing, image analysis, machine learning, control systems, and data science. Beyond its immediate computational capabilities, MATLAB plays a crucial role in developing transferable skills, as the logical reasoning and mathematical intuition gained through MATLAB-based problem solving can be applied to other programming languages and analytical tools. In an era where data-driven decision making and quantitative analysis are increasingly important, the ability to perform accurate and efficient mathematical operations using MATLAB provides a strong foundation for academic success and professional growth. Overall, the significance of mathematical operations using MATLAB lies in its ability to combine computational power, mathematical clarity, and practical usability within a single platform, making it an indispensable resource for anyone seeking to understand, apply, and advance mathematical knowledge in real-world contexts.

Order of Precedence

MATLAB follows a specific order when executing arithmetic operations. This order of precedence is similar to what is used in most standard calculators. The table below outlines the order in which MATLAB evaluates expressions:

Precedence Level Mathematical Operation Description
First Parentheses Expressions within parentheses are evaluated first. For nested parentheses, the innermost set is evaluated first.
Second Exponentiation Operations using exponents (e.g., ^) are evaluated after parentheses.
Third Multiplication and Division Both have equal precedence and are evaluated from left to right.
Fourth Addition and Subtraction These operations have the lowest precedence and are also evaluated from left to right.

When an expression has more than one operation, the ones with higher precedence are done first. If two or more operations have the same level of precedence, MATLAB evaluates them from **left to right**.

Applications

One of the simplest and most common ways to use MATLAB is as a basic calculator. This is done through the Command Window, where you can type any valid mathematical expression. Once you press the Enter key, MATLAB immediately processes the expression and displays the result.

The output appears on the next line, typically starting with ans =, which stands for "answer." This is the default variable MATLAB uses to store the result if no specific variable name is provided.

For example, if you type 3 + 5 and press Enter, MATLAB will respond with:

ans = 8

Expression Explanation Result
10 + 6 / 2 6 / 2 is evaluated first, then added to 10 13
(10 + 6) / 2 10 + 6 is grouped and added first, then divided 8
3 + 6 / 2 + 4 6 / 2 is done first, then the additions left to right 10
4 ^ 3 / 2 4^3 = 64 is done first, then divided by 2 32
64 ^ (1/3) + 25 ^ 0.5 Cube root of 64 and square root of 25 are calculated, then added 4 + 5 = 9
64 ^ 1/3 + 25 ^ 0.5 64 ^ 1 then divided by 3 (wrong precedence) 21.3333
0.5 - (0.5)^3 / (1*2*3) + 0.5^5 / (1*2*3*4*5) Each term is evaluated using powers and factorials ≈ 0.4792

✨Conclusion

  • 😊 MATLAB as a calculator: The Command Window allows you to do direct calculations, just like with a standard calculator.
  • 😊 The order of operations in MATLAB is as follows: Brackets or grouping "()", Powers ".^" , Multiplication "✖️" & Division "➗", then Addition "➕" & Subtraction "➖".
  • 😊 Use of variables: Expressions can involve direct numbers or stored variables for better flexibility and reuse.
  • 😊 Left vs Right Division: Remember, `5 / 3` is normal division, while `5 \ 3` gives the inverse.
  • 🙁 Common Mistake: Forgetting parentheses can lead to wrong results due to precedence rules—always double-check!
  • 😊 Practice makes perfect: Try more expressions and use the Command Window to observe how MATLAB evaluates them step-by-step.

With these fundamentals in mind, you're now equipped to start exploring MATLAB more confidently and effectively. 🎯

© 2025 MATLABit. All rights reserved.

Sunday, July 20, 2025

MATLAB Command Window Explained: A Beginner’s Step-by-Step Guide

MATLABit

MATLAB, short for MATrix LABoratory, is a powerful programming language and integrated software environment developed by MathWorks. It is widely used in engineering, scientific research, academic instruction, and algorithm development due to its strong capabilities in numerical computation, data analysis, visualization, and simulation. Built on the principles of matrix algebra, MATLAB efficiently handles large datasets and complex mathematical models. With this solid foundation, we are ready to begin working in the Command Window and learn how to effectively use the Editor Window alongside it for writing and executing MATLAB programs.

Table of Contents

Introduction

When MATLAB is started for the first time for beginners it appears to be convenient to close all windows except for Command window. Users can reactivate the hidden windows by choosing them from the layout menu accessible within the Toolstrip menu bar. The windows can be displayed by clicking on the layout icon and selecting Default in the menu that opens. The various windows in are docked to the desktop. A window can be undocked (become a separate, independent window) by dragging it out. An independent window can be redocked by clicking on the pulldown menu at the top right-hand side of the window and then selecting Dock.

Guidelines for Working in Command Window

  • To enter a command in MATLAB, place the cursor beside the command prompt symbol >>.
  • Once you type a command and press Enter, only the most recent command is executed. Any previously executed commands remain unchanged, even if still visible.
  • You can enter multiple commands on the same line by separating them with commas. MATLAB will execute them in order from left to right when you press Enter.
  • It is not possible to go back and edit a previous line directly in the Command Window. To modify a command, you must retype it at the prompt.
  • To enter a command in MATLAB, place the cursor beside the command prompt symbol >>.
  • Once you type a command and press Enter, only the most recent command is executed. Any previously executed commands remain unchanged, even if still visible.
  • You can enter multiple commands on the same line by separating them with commas. MATLAB will execute them in order from left to right when you press Enter.
  • It is not possible to go back and edit a previous line directly in the Command Window. To modify a command, you must retype it at the prompt.
  • A previously typed command can be recalled to the command prompt by pressing the up-arrow key (↑). Once recalled, the command can be modified if needed and re-executed.
  • The down-arrow key (↓) is used to move forward through the list of previously typed commands.
  • If a command does not fit on a line, you can continue the command on the next line by typing three periods ... and pressing Enter. The remaining part of the command goes in the next line.
  • A command can be continued across multiple lines this way, up to a maximum of 4,096 characters.
  • The semicolon (;): When a command is entered in the Command Window and the Enter key is pressed, the command is executed and any output it generates is displayed.

    If a semicolon (;) is typed at the end of the command, the output is suppressed and will not be shown in the Command Window. This is useful when the result is already known or when the output is very large.
  • If multiple commands are typed on the same line, and a semicolon (;) is used instead of a comma, the outputs from those commands will also be hidden.
  • Typing the percent sign (%): When a line begins with the percent symbol (%), it is treated as a comment. Pressing Enter will not execute this line.

    Additionally, you can prompt from the same line by using % after a command. This would have no influence on how the command will operate.
  • The clc command:
    In MATLAB, typing clc followed by Enter will clear the Command Window. This is helpful when the display becomes too long or cluttered after entering many commands.
  • Clearing the command window with clc will not wipe any existing variables you are working with, nor revert any actions done before that Editor Window. All previously defined variables remain in the workspace and can still be used.
  • Even after clearing the Command Window with clc, you can still use the up-arrow key (↑) to recall and reuse previously entered commands.

Guidelines for Working in Editor Window

  • Editor Window is used to write, save a file and also to edit script and function files in MATLAB. It provides a dedicated environment for working with larger sets of code.
  • Files saved from the editor are generally saved in. m extension and are referred to as script or function files. Contrary to the Command Window, the Editor allows you write several lines of code and execute them altogether.
  • To run code from the Editor, click the Run button or press F5. The output is displayed in the Command Window.
  • The Editor supports features such as syntax highlighting, automatic indentation, code folding, and error checking, which make coding more efficient and readable.
  • Comments can be added in the Editor using the percent sign %, just like in the Command Window. These comments are helpful for documenting your code.
  • The Editor also supports breakpoints for debugging. You can click on the left margin next to a line number to set a breakpoint and inspect variable values during execution.
  • While editing, unsaved changes are indicated with an asterisk (*) in the tab or title bar. Be sure to save your work regularly using Ctrl + S or the save icon.

Command History Window

  • The Command History Window displays a list of all commands that have been entered in the Command Window, including commands from previous MATLAB sessions.
  • Any command shown in the Command History can be reused. Simply double-click a command to automatically re-enter and execute it in the Command Window.
  • Alternatively, you can drag and drop a command from the Command History into the Command Window, modify it if necessary, and then press Enter to run it.
  • To delete specific commands from the Command History, select the lines, right-click, and choose Delete Selection from the menu.
  • To delete all of the command history, right-click anywhere in the Command History Window and choose Clear Command History from the menu that pops up.

Conclusion

In today’s rapidly evolving technological landscape, tools like MATLAB play a pivotal role in driving innovation, research, and data-driven decision-making. Mastering the use of its essential components—such as the Command Window, Editor Window, and Command History—empowers users to efficiently write, execute, and manage code for complex analytical tasks.

From controlling output display with semicolons and ellipses to writing reusable scripts and recalling past commands, MATLAB offers a streamlined and intelligent environment tailored for problem-solving and simulation. These practices not only enhance coding fluency but also build the foundation for tackling real-world challenges across engineering, science, and industry.

As we move forward into an era dominated by automation, artificial intelligence, and advanced computation, developing proficiency in MATLAB is more than an academic achievement—it’s a vital skill that equips individuals to contribute meaningfully to a future shaped by technology.

© 2025 MATLABit. All rights reserved.

Saturday, July 19, 2025

MATLAB Programming Basics: Introduction and Applications

MATLABit

MATLAB, short for MATrix LABoratory, is a high-level programming language and integrated software environment developed by MathWorks. It is specifically designed for numerical computation, data analysis, algorithm development, and graphical visualization. MATLAB is widely used in engineering, scientific research, and academic learning because it allows users to work efficiently with matrices, perform complex mathematical calculations, and create high-quality visual representations of data. Its intuitive syntax and powerful built-in functions make it an ideal tool for both beginners and professionals.

MATLAB logo is a registered trademark of The MathWorks, Inc.

MATLAB® is a registered trademark of The MathWorks, Inc.

Table of Contents

Introduction

MATLAB enjoys extensive adoption in universities and research laboratories for both introductory and advanced coursework spanning mathematics, the natural sciences, and particularly engineering disciplines. In the industrial sector, the environment supports research, development, and product design. The core MATLAB environment provides a comprehensive suite of built-in functions and toolboxes, allowing users to tackle a broad array of standard analytical and computational challenges.

Significance

MATLAB has become one of the most influential and widely adopted platforms for learning, research, and practical problem solving in science and engineering, primarily because it allows users to transform abstract mathematical ideas into clear, executable solutions with remarkable ease and accuracy. By combining computation, visualization, and programming in a single environment, MATLAB helps learners move beyond theoretical understanding and engage directly with real-world data and systems, which is essential for developing meaningful technical skills. One of the most important aspects of MATLAB is its ability to simplify complex mathematical operations that would otherwise require extensive coding or manual derivations, enabling users to focus on conceptual clarity rather than implementation difficulty. This ease of use makes MATLAB particularly valuable in educational settings, where students are often encountering advanced concepts for the first time and need tools that support learning rather than hinder it. At the same time, MATLAB encourages disciplined problem solving by requiring users to think logically about inputs, outputs, assumptions, and limitations, which fosters analytical thinking and precision. In research environments, MATLAB plays a crucial role by supporting rapid prototyping, experimentation, and validation of ideas, allowing researchers to test hypotheses, analyze results, and refine models efficiently without sacrificing accuracy or reproducibility. Its extensive ecosystem of built-in functions and specialized toolboxes further enhances its importance, as they provide reliable, well-tested methods for tasks ranging from signal and image processing to machine learning and control systems. Another key reason MATLAB is important lies in its powerful visualization capabilities, which enable users to interpret results intuitively through plots, graphs, and figures that reveal patterns, trends, and anomalies that might otherwise remain hidden in raw data. Visualization is not merely a presentation feature but an integral part of analysis that improves understanding and decision-making. Moreover, MATLAB supports structured and reproducible workflows through scripts, functions, and well-organized code, making it easier to document work, collaborate with others, and revisit experiments in the future, which is especially important in academic and professional contexts where transparency and repeatability are essential. Beyond immediate applications, learning MATLAB helps users develop transferable skills that extend to other programming languages and computational tools, as the logical thinking and problem decomposition required in MATLAB are universal in technical disciplines. This long-term value makes MATLAB not just a tool for completing assignments or projects, but a platform for building confidence, independence, and professional competence. In an era where quality, accuracy, and efficiency are increasingly important, MATLAB stands out as a reliable and versatile environment that supports deep learning, practical application, and continuous growth, making it an indispensable resource for students, researchers, and professionals who aim to solve complex problems with clarity and precision.

MATLAB Windows

1. Command Window

This is where you directly enter commands, perform calculations, or run scripts. It acts as the main interactive area for executing MATLAB code line-by-line.

2. Command History

This window keeps a record of all previously entered commands. You can re-run or copy past commands from here without retyping them.

3. Workspace

Displays all the variables currently stored in memory. You can see variable names, sizes, and values and double-click to inspect or edit them.

4. Editor

Used to write, edit, and save scripts or function files (e.g., `.m` files). It provides features like syntax highlighting and debugging tools.

5. Current Folder

Shows files and folders in the current directory. You can use this window to manage files and open scripts or data for your project.

6. Figure Window

This window displays graphical output such as plots, charts, or images generated using MATLAB commands like plot() or imshow().

7. Command Toolbar

A set of buttons that provides quick access to common actions like saving, opening, debugging, and running scripts.

8. Help Browser

Provides documentation and help topics on MATLAB functions, toolboxes, and usage examples. Very useful for learning and troubleshooting.

Applications

  • Engineering and Scientific Research: Modeling systems, solving equations, and simulating physical processes.
  • Signal Processing: Filtering, audio analysis, and signal transformation.
  • Image Processing and Computer Vision: Object detection, medical imaging, and video tracking.
  • Machine Learning and AI: Classification, deep learning, and predictive modeling.
  • Control Systems: PID tuning, system simulation, and Simulink-based modeling.
  • Data Analysis and Visualization: Plotting, statistical analysis, and dashboards.
  • Embedded Systems and Robotics: Code generation, sensor integration, and real-time testing.
  • Finance and Economics: Time-series analysis, simulations, and financial modeling.
  • Education and Teaching: Teaching math and science with simulations and live scripts.

Conclusion

From academic learning to cutting-edge industrial research, MATLAB serves as a versatile tool that bridges theory and practical application. Its ability to handle everything from image processing and machine learning to signal analysis and control systems makes it indispensable in both classrooms and laboratories. Whether you're designing a robot, simulating a financial model, or visualizing medical data, MATLAB empowers users with precision, speed, and ease of use—making it a cornerstone software for modern computational work.

© 2025 MATLABit. All rights reserved.

Logarithmic Plotting in MATLAB: How to Use Log Axes for Scientific Data Visualization

  MATLABit MATLAB (MATrix LABoratory) is a high-level programming language and numerical computing environment developed by MathWorks, w...