Matlab examples - the blog...
Here are some new examples and applications that I have added to my website. They try to clarify the use of some instructions and functions in Matlab. I hope you find them useful...
Using Matlab
Start using Matlab right away! In this tutorial you'll log on or invoke MATLAB, do a few trivial calculations and log off
Permalink -- click for full blog post "Using Matlab"
Trapezoidal Rule
This code approximates the definite integral of a function. The integral is calculated using the trapezoidal rule. Parameters of the function are the limits of integration and the number of intervals...
Permalink -- click for full blog post "Trapezoidal Rule"
Matlab break statement
The break statement lets you exit early from a for or while loop. In nested loops, break exits from the innermost loop only.
Permalink -- click for full blog post "Matlab break statement"
Matlab code
In this tutorial, you'll develop step-by-step Matlab code
Permalink -- click for full blog post "Matlab code"
Matlab Programs
Learn to develop your own Matlab programs !! You'll write a function file to draw a circle of a specified radius, with the radius being the input of the function. You can either write the function file from scratch or modify the script file of this Tutorial Lesson...
Permalink -- click for full blog post "Matlab Programs"
Gaussian distribution - how to plot one in Matlab
How to plot a Gaussian distribution or bell curve in Matlab...
Permalink -- click for full blog post "Gaussian distribution - how to plot one in Matlab"
Matlab Plots
These examples introduce several Matlab plots and its main features... In this group of exercises, we are going to create several MATLAB plots.
Permalink -- click for full blog post "Matlab Plots"
Simple animation with Matlab...
advantage of Matlab’s simple animation capabilities. We expose the basic method or algorithm for animations...
Permalink -- click for full blog post "Simple animation with Matlab..."
3D Simple Animation
We’re going to experiment with simple animation in 3D. We are going to work with a sphere and are going to rotate our view angle. In the second experiment, we’re going to draw a paraboloid, change its size and rotate...
Permalink -- click for full blog post "3D Simple Animation"
Matlab Plot 3
In this example, we study the Matlab plot 'stem' instruction to illustrate functions. It draws vertical lines with a little circle on the tip proportional to the value of the function at that horizontal value.
Permalink -- click for full blog post "Matlab Plot 3"
Polar plots in Matlab - Functions: Compass, Polar and Rose
Polar plots use magnitudes and angles. In this article we’ll show the Matlab built-in commands 'compass', 'polar' and 'rose'...
Permalink -- click for full blog post "Polar plots in Matlab - Functions: Compass, Polar and Rose"
3D Plot - Part 4
In this example we make a summarization of the use of the following 3D plot instructions: meshgrid, figure, contour3, mesh, surfc, surfl...
Permalink -- click for full blog post "3D Plot - Part 4"
T Distribution
This algorithm (Matlab program) calculates right-tail values for points on a t distribution curve. You must provide the value of t and the degrees of freedom...
Permalink -- click for full blog post "T Distribution"
|