Tagged: programming

Matlab Live Editor

Programming and Scripts

Scripts To create a script, use the edit command, edit mysphere This command opens a blank file named mysphere.m. Enter some code that creates a unit sphere, doubles the radius, and plots the results: [x,y,z] = sphere;...

Matlab Functions

Calling a Function in Matlab

MATLAB® provides a large number of functions that perform computational tasks. Functions are equivalent to subroutines or methods in other programming languages. To call a function, such as max, enclose its input arguments in parentheses: A = [1 3...

Working with MATLAB – M-Files

MATLAB is also a powerful programming language, as well as an interactive computational environment. If you use Matlab command prompt, MATLAB also allows you to write series of commands into a file and execute...

A GUI to Set Simulink Model Parameters

About the Simulink Model Parameters Example This example illustrates how to create a GUI that sets the parameters of a Simulink® model. In addition, the GUI can run the simulation and plot the results...

Matlab GUIDE: Getting Started

Matlab Getting Started GUI Layout GUIDE, the MATLAB graphical user interface development environment, provides a set of tools for creating graphical user interfaces (GUIs). These tools simplify the process of laying out and programming...

Using .NET from MATLAB

What Is the Microsoft .NET Framework? The Microsoft .NET Framework is an integral Windows component that provides a large body of precoded solutions to common program requirements, and manages the execution of programs written...

Why Use Object-Oriented Design

Approaches to Writing MATLAB Programs Creating software applications typically involves designing how to represent the application data and determining how to implement operations performed on that data. Procedural programs pass data to functions, which...