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...
Palindromes - Inverting ascii strings in Matlab
Palindromes are phrases, words, numbers or other sequence of characters that are the same way in either direction. Let's see a Matlab algorithm...
Permalink -- click for full blog post "Palindromes - Inverting ascii strings in Matlab"
Electricity Cost Calculator - use this code to program it...
We’ll now implement a kind of electricity cost calculator with Matlab... This calculator will help you estimate the cost of operating any given electrical device or appliance at home, based on the average kilowatt-hours...
Permalink -- click for full blog post "Electricity Cost Calculator - use this code to program it..."
Recursion - a conceptual example in Matlab
Recursion is a kind of tricky and smart construction which allows a function to call itself. The Matlab programming language supports it...
Permalink -- click for full blog post "Recursion - a conceptual example in Matlab"
Dot Product - an approach in Matlab
The dot product is a scalar number and so it is also known as the scalar or inner product. In a real vector space, the scalar product between two vectors is calculated this way...
Permalink -- click for full blog post "Dot Product - an approach in Matlab"
Matlab Programming - tutorials and examples
In this Matlab programming example, we are going to plot two concentric circles and mark the center point with a black square. We use polar coordinates in this case (for a variation).
Permalink -- click for full blog post "Matlab Programming - tutorials and examples"
Vector Algebra 2 - coding examples in Matlab
We expose how simple it is to work with vector algebra, within Matlab. Row vector y can represent a straight line by doubling the x value (just as a slope = 2) and adding a constant. Something like y = mx + c. It's easy to perform algebraic operations on vectors since you apply the operations to the whole vector, not to each element alone.
Permalink -- click for full blog post "Vector Algebra 2 - coding examples in Matlab"
Matlab Programs - tutorials and examples
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 - tutorials and examples"
Matlab code - examples and tutorials
In this tutorial, you'll develop step-by-step Matlab code
Permalink -- click for full blog post "Matlab code - examples and tutorials"
Matrices - learn how to use them in Matlab
These examples show you to arrange and manipulate matrices in Matlab...
Permalink -- click for full blog post "Matrices - learn how to use them in Matlab"
Magic Square - properties in Matlab
Would you like to form a magic square with Matlab? Would you like to know why it is magic? Would you like to learn Matlab?...
Permalink -- click for full blog post "Magic Square - properties in Matlab"
Vectors - an approach with numerical software
In Matlab, you can form arrays of numbers - vectors or matrices - in a straight and intuitive way. See these examples...
Permalink -- click for full blog post "Vectors - an approach with numerical software"
More MATLAB Commands
On this page we introduce some basic MATLAB commands. You can download a list of commands...
Permalink -- click for full blog post "More MATLAB Commands"
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"
Callback Function - GUIs in Matlab
In this article we’re going to build-up a simple adder. Our adder (by means of relevant callback function s) is going to have two ‘edit text’ components, two ‘static text’ components, and one ‘push button’ element.
Permalink -- click for full blog post "Callback Function - GUIs in Matlab"
Calculate Monthly Loan Payments - usable spreadsheet
Online spreadsheet to calculate monthly loan payments. It calculates the amount required as regular payments in order to repay a loan over a specified time period...
Permalink -- click for full blog post "Calculate Monthly Loan Payments - usable spreadsheet"
Collatz Conjecture - a code in Matlab
The Collatz conjecture is an unsolved conjecture in mathematics. This problem is also known as 3n + 1, or the Syracuse problem; the sequence of numbers involved is referred to as the hailstone sequence. Let's see a code in Matlab...
Permalink -- click for full blog post "Collatz Conjecture - a code in Matlab"
|