YouTube RSS
YouTube RSS
Skip to content
  • About me
  • Home
  • Contact
  • Photos
    • News
    • Food
    • Statues
  • Links
  • My Keyboard Shortcuts
  • Publications
    • Research
    • Project reports
  • Artwork
    • 2d illustrations
    • 3d Modeling
    • Stop motion
Home Programming Archive by category "MATLAB"

Category: MATLAB

Code written in the MATLAB programming language. The code may also work using Octave.

Project: Photo Mosaic Renderer and Viewer

Mosaic demo Usage: First, click on a button to load that scene. On a PC: translate= wasd, zoom in = e, zoom out = f, reset zoom = z, zoom in = left MB (hold),…

Continue reading

Matz August 13, 2021 - 12:00 am September 18, 2021Art, MATLAB Image Processing, mosaic, movies 0

Advent of Code 2016

For the impatient: jump to versions of my code: final version second version first version So, I was introduced to this website called “Advent of Code” http://adventofcode.com just the other day, it’s pretty cool. The…

Continue reading

Matz December 8, 2016 - 7:00 am December 11, 2016MATLAB advent of code, puzzle 0

Enhancing Image Quality of Thermal Images (Seek)

As you may know, I recently bought the ”Seek Thermal Camera” for my smartphone. It works great, but the images I take are blurry and quite noisy. In this post I will try to sharpen…

Continue reading

Matz September 29, 2015 - 1:16 pm September 29, 2015MATLAB convolution, FFT, Image Processing, matlab, noise 0

Enhancing Spy Camera Photos of Documents

This post is about how you can processed a photo (spy photo) of a document using rectification and moving average thresholding in Matlab. The Problem We have all been in the situation where we wish…

Continue reading

Matz August 23, 2015 - 11:38 pm August 24, 2015MATLAB exposure, filter, Image Processing 0

Smoothing a Halftone Photo using FFT

In this post I will show how to smooth a halftone image using the fast Fourier Transform (FFT). You can try this out yourself by downloading my Matlab code on the bottom of the article.…

Continue reading

Matz August 8, 2015 - 11:13 pm December 14, 2022MATLAB FFT, filter, Image Processing 2

Reducing VHS Salt-and-Pepper Noise

As I was watching a magician’s lecture from 1985 of the magician Tommy Wonder (stage name of Jacobus Maria Bemelman), I immediately noticed the distracting noise in the video. It looked like salt-and-pepper noise, but…

Continue reading

Matz August 5, 2015 - 11:26 pm September 28, 2015MATLAB Image Processing, noise 0

CSV Parsing in Matlab

A couple of weeks ago I needed to parse the gmail contacts of my local magician’s club (GMK – Göteborgs Magiska Klubb) of which I belong to. My task was to create a neat list…

Continue reading

Matz July 12, 2014 - 9:45 pm January 26, 2015MATLAB, Programming csv, excel, parsing, string 0

Finding the Taxi Cab Numbers

This post is about “Taxi cab numbers” specifically the “Ramanujan-Hardy number”, 1729. This specific taxi cab number is so-called because it is the smallest positive number that can be written as a sum of two…

Continue reading

Matz May 30, 2014 - 10:28 pm July 1, 2014MATLAB Fermat's Last Theorem, Floating Point Number, Ramanujan 2

Realistic Fire Simulation using Cellular Automata

In this post I will explain how you can create an interesting fire effect using simple “game of life”-like rules and some post processing and why it is not a good idea to do this…

Continue reading

Matz May 13, 2014 - 1:33 pm August 19, 2014MATLAB Image Processing, matlab, simulation, visualization 2

Faster Linear Convolution Using Careful Zero Padding

When computing a linear convolution between an image I and a kernel K, the convention is to use FFT, pad with zeroes (also called zero filling) and use the convolution theorem to do this efficiently.…

Continue reading

Matz April 12, 2014 - 10:31 pm May 7, 2017MATLAB convolution, factor, FFT, matlab, padding, recursion 0

Double-Slit Experiment Simulation

This post is about simulating the double-slit experiment using a water tank simulation in Matlab. The simulation is really used to create a rain drop animation, but I modified it slightly to do the double-slit…

Continue reading

Matz March 31, 2014 - 11:14 am August 4, 2014MATLAB experiment, matlab, physics, wave 5

Beveled Cube from a Sphere

This post is about how one can map a sphere to a “rounded”, “smoothed” or as I prefer to call it a “beveled” cube. We will as a bonus also see how to make a…

Continue reading

Matz February 16, 2014 - 12:14 am June 19, 2014MATLAB matlab 0

Fast Fourier Transform of a zero vector

This is a short post about FFT of zero vectors and as a result show why FFTW does not check if the argument is a zero vector. I could argue that zero vectors are a…

Continue reading

Matz February 8, 2014 - 8:20 pm February 16, 2014MATLAB FFT, matlab, optimization 0

Taxi Company Dispatch Simulation

As a part of the course in “Simulation of Complex Systems” I suggested a project. The project was to simulate the dispatch system of a taxi cab company. The goal was to essentially simulate where…

Continue reading

Matz January 26, 2014 - 7:39 pm September 28, 2015MATLAB dispatch, matlab, simulation, sparse matrix, taxi, visualization 2

Wave propagation using vertical springs

This is a simple MATLAB code I created which simulates the way a wave propagates through a medium. I wanted to simulate the wave machine created by John N. Shive at Bell Telephone laboratories. The…

Continue reading

Matz January 20, 2014 - 1:00 am April 4, 2015MATLAB, Programming, Uncategorized matlab, physics, simulation, spring, wave 0
  • Friends blogs

  • Play Español (Learn Spanish)
  • Jahr Iljas art blog
  • Jonas' blog (mostly Haskell)
  • Recent comments

    • Matz on Smoothing a Halftone Photo using FFT
    • Kelvin on Smoothing a Halftone Photo using FFT
    • Matz on Explorer is Flirting with me
    • Mexican fan on Explorer is Flirting with me
    • Matz on How the FBI Found Swirl Face Using Photoshop
  • Tags

    3D 3ds max 123D Catch advent of code Alien Autodesk backup BIOS bug camera command line conference convolution Conway drivers dropbox Einstein experiment exposure FFT files filter heart Image Processing keyboard matlab Monte Carlo noise PDF physics Pi printer puzzle quadcopter Sci-Fi simulation sourdough ThreeJS time lapse USB virtualbox visualization wave Windows 7 windows 10
  • Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org
All rights reserved (C) Matz Johansson Bergström 2015-2021.
YouTube RSS
Powered by Tempera & WordPress.
MatzJB