Tagged: sum

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

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

Simulink Building the Model

Building the Model Simulink® provides a set of predefined blocks that you can combine to create a detailed block diagram of your system. Tools for hierarchical modeling, data management, and subsystem customization enable you...

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

Working with 8-Bit and 16-Bit Images

8-Bit and 16-Bit Indexed Images Double-precision (64-bit) floating-point numbers are the default MATLAB representation for numeric data. However, to reduce memory requirements for working with images, you can store images as 8-bit or 16-bit...

The Colon Operator

The colon, :, is one of MATLAB’s most important operators. It occurs in several different forms. The expression 1:10 is a row vector containing the integers from 1 to 10 1 2 3 4...

Subscripts

Subscripts Command The element in row i and column j of A is denoted by A(i,j). For example, A(4,2) is the number in the fourth row and second column. For our magic square, A(4,2)...