Matlab and Simulink Tutorials Blog

A GUI to Set Simulink Model Parameters Example 2

Running the Simulation from the GUI The GUI Simulate and store results button callback runs the model simulation and stores the results in the handles structure. Storing data in the handles structure simplifies the...

Matlab Using FFT

This demonstration uses the FFT function to analyze the variations in sunspot activity over the last 300 years. Sunspot activity is cyclical, reaching a maximum about every 11 years. Let’s confirm that. Here is...

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

Displaying Graphics Images

Image Types and Display Methods To display a graphics file image, use either image or imagesc. For example, assuming RGB is an image, figure(‘Position’,[100 100 size(RGB,2) size(RGB,1)]); image(RGB); set(gca,’Position’,[0 0 1 1]) [warning]This image...

Matlab Annotation Objects and Example

Users typically create annotation objects from the Plot Edit toolbar or the Insert menu (select Plot Edit in the View menu to display the Plot Edit toolbar). However, you can also create annotation objects...

Linking Graphs to Variables & Data Source Properties

Plot objects let you link a MATLAB expression with properties that contain data. For example, the lineseries object has data source properties associated with the XData, YData, and ZData properties. These properties are called...