top of page

Blogs to date

Header Subtitle

MatlabMonday#1

MatlabMonday#12

In this post we continue matrix manipulation in Matlab. Remember Matlab is short for matrix laboratory.
In this post we look at matrix multiplication in matlab. In doing so we remind ourselves of basic matrices fundamentals

In this post we continue matrix manipulation in Matlab.
Today we are looking at 4 different methods to generate matrices.
Remember Matlab is short for matrix laboratory.

In this post we continue matrix manipulation in Matlab.
Today we are going examine  a) matrix concatenation and b) deleting rows and columns.
Remember Matlab is short for matrix laboratory.

In this post we continue matrix manipulation in Matlab.

 We often need to obtain information about matrices such as size and range of values of a given array. Today we look at some of these fucntions.

​Remember Matlab is short for matrix laboratory.

The If-Else Structure in MATLAB
You can use a conditional statement in MATLAB when you want to execute instructions based on a statement that is true or false.
Matlab = matrix laboratory

The If-Else Structure in MATLAB continued
Write a Matlab program to display the sign of the Chinese Zodiac for given year in which you were born.

Some/most people will use an "If elseif" statement whereas a "Switch case" statement is going to be cleaner and easier to understand and maintain.

The next concept we will consider in our series of MatlabMonday is the for loop . This is also known an unconditional loop / iteration. Two examples are given.
Remember Matlab = Matrix Laboratory

In MatlabMonday#20 we introduced for loops. We continue today with harder examples.
Remember Matlab = Matrix Laboratory

In Matlab Monday 22 we continue our examination of for loops. We will find a solution to finding a root of an equation. We will also use fzero to get the exact solution as we compare the two answers.

We continue our investigation of for loops in Matlab. As we will see in the weeks to come there are far more elegant and efficient ways of using for loops in Matlab

We continue our investigation of for loops in Matlab. As we will see in the weeks to come there are far more elegant and efficient ways of using for loops in Matlab

Item Subtitle

Continuing our examples of replacing for loops with inbuilt commands

Today we introduce the while loop in Matlab. The while loop is a conditional loop i.e. it keeps iterating until a condition is met.
Matlab = Matrix Laboratory

We continue our examination of while loops. This example is designed for engineering / physics / mathematics students. It models the flight of a model rocket. 
Remember matlab = matrix laboratory

We continue our examination of while loops. Today we use script to count the number of lines in matlab file.

We have been examining while loops for the last few weeks. We have not examined infinite loops a problem that occurs for students new to programming.

We continue our examination of while loops. Today’s post is also covered in YouTube. The link is https://youtu.be/d_dACo5TmhY. As sound is required the video may help with the understanding of the problem.

Problem statement. Determine a person’s absolute threshold for the intensity of a 1-KHz pure tone.

In previous posts we covered for loops. Today we examine nested for loops

Many traditional programming courses use nested for loops as a matter of course. However in Matlab , for loops are almost redundant. For loops, be they nested or otherwise are high inefficient both in terms of execution time and user memory.

Today we will use nested for loops to segment an image. Then we will show how to segment the image using a mask.

For a more professional approach see https://blogs.mathworks.com/steve/2011/04/23/color-based-segmentation-demo-on-the-file-exchange/

We continue our examination of nested for loops. As stated in MatlabMonday#33 many CS courses use nested for loops as a fundamental concept. In Matlab there is nearly always a more elegant way.
In today’s example we examine how to find the prime numbers from 1 to 100

We have examining nested for loops for the last few weeks. Today we have a nested loop with a difference. A while loop inside a for loop

Item Subtitle

k-NN supervised classification in Matlab

Item Subtitle

Today we start examine some simple plotting commands

Occassionally we have several dependent variables plotted agains one independent variable. To distinguish the dependent variables we use a legend. It is also possible to set colours (colors) for the different vectors and to change the location of the legend on the figure

It can sometimes be useful to display multiple plots on the same figure for comparison. This can be done using the subplot function, that takes arguments for number of rows of plots, number of columns of plots, and plot number currently being plotted:

We continue our introduction to plotting in Matlab. Today we are going to examine the Area plot function.

Today we continue our examination of plotting in Matlab. Today we examine the Stem plot

Today we continue our examination of plotting in Matlab. Today we examine the Bar plot.

Today we continue our examination of plotting in Matlab. Today we examine the Barh plot

We continute our examination of various plots in Matlab Today we examine the errorbar function /plot

We continue our examination of plots in Matlab. Today we examine the stairs function /plot .

We continue our examination of plotting in Matlab. Today we examine the pie function.

We continue our examination of plotting in Matlab. Today we examine the polar plot.

We continue our examination of plotting in Matlab. Today we examine the compass plot in ThingSpeak

We continue out examination of plots in Matlab. Today we use the scatter plot in Matlab

Today we examine the 3d scatter plot in Matlab

This example is how to draw olympic rings in Matlab. The IP belongs to  Loren Shure https://blogs.mathworks.com/loren/2008/10/31/olympic-rings/

Today we start our examination of 3d plots in Matlab. We will start the plot3 command.

We continue  our examination of 3d plots in Matlab. Today we will look at the mesch command.

This is our first example of drawing animated graphs in Matlab

This is our second example of animating graphs in Matlab

This is our third example of aminating graphs in Matlab. We plot a sine wave of varying amplitude 5000 times using a for loop

How to make a movie of a moving graph

Today we are going to make an animated gif from a moving chart

This is our sixth example of animated graphs in Matlab
Today we are going to make a movie of a moving chart

Solving stiff differential equations in Matlab

This is our seventh example of animated graphs in Matlab

 IMPORTANT

 THE IP belongs to 

 https://uk.mathworks.com/matlabcentral/answers/384848-get-figures-and-use-them-to-build-a-video-avi

IMAGE Analyst

For the next block of MatlabMonday tutorials we are going to examine some basic image processing in Matlab. Today we  examine how to flip an image in Matlab.

A simple linear progamming example is demonstrated.

Item Subtitle

This is the second example of how to flip an image in Matlab. This method is effective but would take a newbie alot of time to code. MatlabDublin#60 is a much more efficent method.

Solve a second order ODE using Runge Kutta

Item Subtitle

The copyright belogs to Matlab and " Greg". We continue our examination of plotting in Matlab. This is not my work.

We continue our examination of plotting in Matlab.  I loved the album so this plot is one of my favourites. The IP belongs to Maximilian Schönau/ 

Source https://uk.mathworks.com/matlabcentral/communitycontests/contests/4/entries/2021.

​

We continue our examination of plotting in Matlab. This IP belongs to Matlab and  KSSV . See https://uk.mathworks.com/matlabcentral/profile/authors/2038981

List Subtitle

How to plot a bouncing ball in Matlab

Compound rotation, scale and translation of points in homogenous format using Matlab

A simple introduction to homogeneous coordinates in Matlab

Item Subtitle

The same operations are carried out as previous  tutorial

Plot the US flag

MatlabMonday#67
Today's example is quite complicated and assumes that the user has advanced coding and statistical skills.
For students in the geomatics space the combination of least squares adjustment and followed up by using the method of Variation of Coordinates provide important analysis tools for the surveyor.

Item Confidence Interval Plot Examples
Create a mean line within a shaded confidence interval area.
Cite As
Jennie Chung (2022). Confidence Interval Plot (https://github.com/MATLAB-Graphics-and-App-Building/confidenceIntervalPlot/releases/tag/v1.0), GitHub. Retrieved February 1, 2022.Subtitl

Students in the geomatics space and others need to check if the residuals after a survey are normally distributed.

A very good example of plotting in Matlab. The IP belongs to https://uk.mathworks.com/help/stats/visualizing-multivariate-data.html

Item Subtitle

Item Subtitle

Surf example 2

Visualising Vector Fields

Second example of quiver

Introduction to the surfl command

Introduction to the surfc command.

Introduction to image processing

We introduce further image processings commands

Item Subtitle

We continue out discussion on image processing in Matlab.

Welcome to MatlabMonday#81

MatlabMonday#82

Video review of the first three weeks.

We continue our examination of image processing commands.

We have  another example of bwlabel, regionprops, ismember and find.

Regionprops , ismember, bwConnect and other object detection functions

Item Subtitle

The file size is 56.4 MB

This is our 4th tutorial on object counting

Today we use image processing commands in Matlab to count the number of gears on a sprocket.

Please note IP belongs to https://blogs.mathworks.com/steve/2014/02/04/regionprops-tables-and-struct2table/

Today we start a new topic, namely noise in image processing.

Part two of noise in images

Introduction to an image filtering

Image processsing noise reduction Wiener function.

Edge detection in Matlab

Prewitt edge detection

Sobel Horizontal edge detection

Edge detection using the edge function

We continue our examination of the edge function.

Filtering noise in Matlab

More on filtering  an image in Matlab

Item SubtitleWe continue our use of local locallapfilt to Smooth Image Details Without Affecting Edge Sharpness

We continue our  use LOCALLAPFILT  to boost  local contrsat of an RGB image using local laplacian filter and 'ColorMode'

We continue our use LOCALLAPFILT perform edge aware noise reduction

A list of tutorials 1 to 100 is given

We continue our use LOCALLAPFILT perform edge aware noise reduction

Heading 2

We continue our use LOCALLAPFILT perform edge aware noise reduction

Flat field correction for non uniform illumination

Remove vignette with flat field correction

Today we use the function localcontrast to Increase or Reduce Local Contrast of Image

Today we use the function localtomemap to render a HDR image for viewing while enhancing the local contrast

A plot of "Dark side of the moon"

A plot of the Sweedish flag

A plot of a go sign

A plot of a Martini glass

T'paviaU data is prelaoded into Matlab Example one of NDVI

TToday is the first of a multipart series featuring hypercube function in Matlab. The hypercube function enables us to examine to hyperspectral data.

Create Data Cube from Numeric Inputs

Explore Hyperspectral Data in the Hyperspectral Viewer

Remove Bands in Specified Wavelength Range

Remove Bands in Specified Wavelength Range

Blogs to date

Header Subtitle

MatlabMonday#1

MatlabMonday#12

In this post we continue matrix manipulation in Matlab. Remember Matlab is short for matrix laboratory.
In this post we look at matrix multiplication in matlab. In doing so we remind ourselves of basic matrices fundamentals

In this post we continue matrix manipulation in Matlab.
Today we are looking at 4 different methods to generate matrices.
Remember Matlab is short for matrix laboratory.

In this post we continue matrix manipulation in Matlab.
Today we are going examine  a) matrix concatenation and b) deleting rows and columns.
Remember Matlab is short for matrix laboratory.

In this post we continue matrix manipulation in Matlab.

 We often need to obtain information about matrices such as size and range of values of a given array. Today we look at some of these fucntions.

​Remember Matlab is short for matrix laboratory.

The If-Else Structure in MATLAB
You can use a conditional statement in MATLAB when you want to execute instructions based on a statement that is true or false.
Matlab = matrix laboratory

The If-Else Structure in MATLAB continued
Write a Matlab program to display the sign of the Chinese Zodiac for given year in which you were born.

Some/most people will use an "If elseif" statement whereas a "Switch case" statement is going to be cleaner and easier to understand and maintain.

The next concept we will consider in our series of MatlabMonday is the for loop . This is also known an unconditional loop / iteration. Two examples are given.
Remember Matlab = Matrix Laboratory

In MatlabMonday#20 we introduced for loops. We continue today with harder examples.
Remember Matlab = Matrix Laboratory

In Matlab Monday 22 we continue our examination of for loops. We will find a solution to finding a root of an equation. We will also use fzero to get the exact solution as we compare the two answers.

We continue our investigation of for loops in Matlab. As we will see in the weeks to come there are far more elegant and efficient ways of using for loops in Matlab

We continue our investigation of for loops in Matlab. As we will see in the weeks to come there are far more elegant and efficient ways of using for loops in Matlab

Item Subtitle

Continuing our examples of replacing for loops with inbuilt commands

Today we introduce the while loop in Matlab. The while loop is a conditional loop i.e. it keeps iterating until a condition is met.
Matlab = Matrix Laboratory

We continue our examination of while loops. This example is designed for engineering / physics / mathematics students. It models the flight of a model rocket. 
Remember matlab = matrix laboratory

We continue our examination of while loops. Today we use script to count the number of lines in matlab file.

We have been examining while loops for the last few weeks. We have not examined infinite loops a problem that occurs for students new to programming.

We continue our examination of while loops. Today’s post is also covered in YouTube. The link is https://youtu.be/d_dACo5TmhY. As sound is required the video may help with the understanding of the problem.

Problem statement. Determine a person’s absolute threshold for the intensity of a 1-KHz pure tone.

In previous posts we covered for loops. Today we examine nested for loops

Many traditional programming courses use nested for loops as a matter of course. However in Matlab , for loops are almost redundant. For loops, be they nested or otherwise are high inefficient both in terms of execution time and user memory.

Today we will use nested for loops to segment an image. Then we will show how to segment the image using a mask.

For a more professional approach see https://blogs.mathworks.com/steve/2011/04/23/color-based-segmentation-demo-on-the-file-exchange/

We continue our examination of nested for loops. As stated in MatlabMonday#33 many CS courses use nested for loops as a fundamental concept. In Matlab there is nearly always a more elegant way.
In today’s example we examine how to find the prime numbers from 1 to 100

We have examining nested for loops for the last few weeks. Today we have a nested loop with a difference. A while loop inside a for loop

Item Subtitle

k-NN supervised classification in Matlab

Item Subtitle

Today we start examine some simple plotting commands

Occassionally we have several dependent variables plotted agains one independent variable. To distinguish the dependent variables we use a legend. It is also possible to set colours (colors) for the different vectors and to change the location of the legend on the figure

It can sometimes be useful to display multiple plots on the same figure for comparison. This can be done using the subplot function, that takes arguments for number of rows of plots, number of columns of plots, and plot number currently being plotted:

We continue our introduction to plotting in Matlab. Today we are going to examine the Area plot function.

Today we continue our examination of plotting in Matlab. Today we examine the Stem plot

Today we continue our examination of plotting in Matlab. Today we examine the Bar plot.

Today we continue our examination of plotting in Matlab. Today we examine the Barh plot

We continute our examination of various plots in Matlab Today we examine the errorbar function /plot

We continue our examination of plots in Matlab. Today we examine the stairs function /plot .

We continue our examination of plotting in Matlab. Today we examine the pie function.

We continue our examination of plotting in Matlab. Today we examine the polar plot.

We continue our examination of plotting in Matlab. Today we examine the compass plot in ThingSpeak

We continue out examination of plots in Matlab. Today we use the scatter plot in Matlab

Today we examine the 3d scatter plot in Matlab

This example is how to draw olympic rings in Matlab. The IP belongs to  Loren Shure https://blogs.mathworks.com/loren/2008/10/31/olympic-rings/

Today we start our examination of 3d plots in Matlab. We will start the plot3 command.

We continue  our examination of 3d plots in Matlab. Today we will look at the mesch command.

This is our first example of drawing animated graphs in Matlab

This is our second example of animating graphs in Matlab

This is our third example of aminating graphs in Matlab. We plot a sine wave of varying amplitude 5000 times using a for loop

How to make a movie of a moving graph

Today we are going to make an animated gif from a moving chart

This is our sixth example of animated graphs in Matlab
Today we are going to make a movie of a moving chart

Solving stiff differential equations in Matlab

This is our seventh example of animated graphs in Matlab

 IMPORTANT

 THE IP belongs to 

 https://uk.mathworks.com/matlabcentral/answers/384848-get-figures-and-use-them-to-build-a-video-avi

IMAGE Analyst

For the next block of MatlabMonday tutorials we are going to examine some basic image processing in Matlab. Today we  examine how to flip an image in Matlab.

A simple linear progamming example is demonstrated.

Item Subtitle

This is the second example of how to flip an image in Matlab. This method is effective but would take a newbie alot of time to code. MatlabDublin#60 is a much more efficent method.

Solve a second order ODE using Runge Kutta

Item Subtitle

The copyright belogs to Matlab and " Greg". We continue our examination of plotting in Matlab. This is not my work.

We continue our examination of plotting in Matlab.  I loved the album so this plot is one of my favourites. The IP belongs to Maximilian Schönau/ 

Source https://uk.mathworks.com/matlabcentral/communitycontests/contests/4/entries/2021.

​

We continue our examination of plotting in Matlab. This IP belongs to Matlab and  KSSV . See https://uk.mathworks.com/matlabcentral/profile/authors/2038981

List Subtitle

How to plot a bouncing ball in Matlab

Compound rotation, scale and translation of points in homogenous format using Matlab

A simple introduction to homogeneous coordinates in Matlab

Item Subtitle

The same operations are carried out as previous  tutorial

Plot the US flag

MatlabMonday#67
Today's example is quite complicated and assumes that the user has advanced coding and statistical skills.
For students in the geomatics space the combination of least squares adjustment and followed up by using the method of Variation of Coordinates provide important analysis tools for the surveyor.

Item Confidence Interval Plot Examples
Create a mean line within a shaded confidence interval area.
Cite As
Jennie Chung (2022). Confidence Interval Plot (https://github.com/MATLAB-Graphics-and-App-Building/confidenceIntervalPlot/releases/tag/v1.0), GitHub. Retrieved February 1, 2022.Subtitl

Students in the geomatics space and others need to check if the residuals after a survey are normally distributed.

A very good example of plotting in Matlab. The IP belongs to https://uk.mathworks.com/help/stats/visualizing-multivariate-data.html

Item Subtitle

Item Subtitle

Surf example 2

Visualising Vector Fields

Second example of quiver

Introduction to the surfl command

Introduction to the surfc command.

Introduction to image processing

We introduce further image processings commands

Item Subtitle

We continue out discussion on image processing in Matlab.

Welcome to MatlabMonday#81

MatlabMonday#82

Video review of the first three weeks.

We continue our examination of image processing commands.

We have  another example of bwlabel, regionprops, ismember and find.

Regionprops , ismember, bwConnect and other object detection functions

Item Subtitle

The file size is 56.4 MB

This is our 4th tutorial on object counting

Today we use image processing commands in Matlab to count the number of gears on a sprocket.

Please note IP belongs to https://blogs.mathworks.com/steve/2014/02/04/regionprops-tables-and-struct2table/

Today we start a new topic, namely noise in image processing.

Part two of noise in images

Introduction to an image filtering

Image processsing noise reduction Wiener function.

Edge detection in Matlab

Prewitt edge detection

Sobel Horizontal edge detection

Edge detection using the edge function

We continue our examination of the edge function.

Filtering noise in Matlab

More on filtering  an image in Matlab

Item SubtitleWe continue our use of local locallapfilt to Smooth Image Details Without Affecting Edge Sharpness

We continue our  use LOCALLAPFILT  to boost  local contrsat of an RGB image using local laplacian filter and 'ColorMode'

We continue our use LOCALLAPFILT perform edge aware noise reduction

A list of tutorials 1 to 100 is given

We continue our use LOCALLAPFILT perform edge aware noise reduction

Heading 2

We continue our use LOCALLAPFILT perform edge aware noise reduction

Flat field correction for non uniform illumination

Remove vignette with flat field correction

Today we use the function localcontrast to Increase or Reduce Local Contrast of Image

Today we use the function localtomemap to render a HDR image for viewing while enhancing the local contrast

A plot of "Dark side of the moon"

A plot of the Sweedish flag

A plot of a go sign

A plot of a Martini glass

T'paviaU data is prelaoded into Matlab Example one of NDVI

Identify Vegetation Regions Using Interactive NDVI Thresholding

Today we start exploring the data cube object

Explore Hyperspectral Data in the Hyperspectral Viewer

Remove Bands in Specified Wavelength Range

Remove Bands in Specified Wavelength Range

bottom of page