Tagged: program

uifigure

Matlab uifigure usage fig = uifigure creates a figure for building a user interface and returns the Figure object. This is the type of figure that App Designer uses. fig = uifigure(Name,Value) specifies figure properties using one or more Name,Value pair arguments....

Text in String Arrays

When you are working with text, enclose sequences of characters in double quotes. You can assign text to a variable. t = “Hello, world”; If the text includes double quotes, use two double quotes...

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...