### How to get a matrix row number if values are found [Matlab]

30 November 2019

Suppose we have this matrix

and we need to search for the values

to get the corresponding row numbers of the matrix in […]

### Point symmetry, linear average and DC offset [Matlab]

25 November 2019

The Matlab code can be used to create a point symmetric function with respect to a given point of symmetry. It also shows the principle […]

### Replace a parameter’s value inside text file with MATLAB

7 July 2019

Assuming we file.txt, which looks like this:

Task: open file.txt in Matlab, change the value corresponding to KEY8 (which is “VALUE8”) to e.g. “NEW […]

### MATLAB expression manipulation

2 July 2019

This is a simple exercise to use some Matlab expression manipulation functions. Our goal is to espress the product of two 64 Bit numbers as […]

### Testing the efficiency of Horner’s Rule with MATLAB

19 January 2019

What is the Horner’s Rule used for? It lets us write a polynomial in such a form which require less multiplications, as shown from the Wikipedia’s […]

### Functions recursion using graphs in MATLAB

14 November 2018

This is the MATLAB implementation of the idea explained here by using the useful graph functions already given in MATLAB. Here an additional feature is […]

### MATLAB Notes

14 November 2018

This PDF contains answers about how to… Compute the partial derivative and the gradient of a function Compute the function at given input values Increase […]

### A MATLAB Neural Network Implementation

13 November 2018

I wrote the following MATLAB script following the common algorithm of a Feed-forward neural network  using the Logistic nonlinearity as activation function. A more theoretical […]

### Curve fitting

5 September 2017

One of my preferred task I like to see solved by the powerful computational skills of calculators is the curve fitting: we have some measured […]

### How to 2D-plot moving points in MATLAB

30 August 2017

The following MATLAB codes are also compatible with GNU Octave (I used the version 3.8.1). This is the final function I wrote:

Note: since […]