# Tagged: example

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

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

## Simulation of a Bouncing Ball

Figure 1: A ball is thrown up with a velocity of 15 m/s from a height of 10 m. A bouncing ball model is a classic example of a hybrid dynamic system. A...

## Logical Subscripting

Matlab Logical Subscripting Tutorial The logical vectors created from logical and relational operations can be used to reference subarrays. Suppose X is an ordinary matrix and L is a matrix of the same size...

## The find Function

Find Function The find function determines the indices of array elements that meet a given logical condition. In its simplest form, find returns a column vector of indices. Transpose that vector to obtain a...

## Linear Algebra

Informally, the terms matrix and array are often used interchangeably. More precisely, a matrix is a two-dimensional numeric array that represents a linear transformation. The mathematical operations defined on matrices are the subject of...