
Quadratic Equations - solve them with this simple code
Learn to solve quadratic equations We are going to create now a Matlab program that calculates the quadratic roots (roots of quadratic equations). The equation must be in the following form: ax2 + bx + …
RC circuit - Transient analysis with Matlab
The following examples illustrate the use of Matlab for solving problems related to RC circuits. Example 1 – Charging circuit Assume that for the charging RC circuit above Vs = 10 volts and C = 10 …
Calculus Problems - let's use Matlab to tackle them
Calculus Problems - some ideas and approaches with Matlab Calculus problems are a branch of mathematics focused on limits, functions, derivatives and integrals.
ASCII Chart in Matlab
ASCII Chart in Matlab In this article we have three goals: first, we’re going to develop an ASCII chart to understand instructions char and double in Matlab; second, we’re going to work with a simple ASCII …
Polynomial Regression in Matlab - easy least squares fitting
May 7, 2010 · Polynomial Regression – Least Square Fittings This brief article will demonstrate how to work out polynomial regressions in Matlab (also known as polynomial least squares fittings). The …
Nodal Analysis - learn about KCL and solve it easily with Matlab
The following example illustrates the use of Matlab for solving nodal voltages of electrical circuits. Nodal Analysis - find the voltages in a circuit For the circuit shown below, resistors are in ohms and current …
Polygon Area - calculate with Matlab
This program calculates a polygon area, using Matlab. You must supply the x and y coordinates of all vertices. Coordinates must be entered in order of successive vertices...
hist - Histograms in Matlab - easy examples
hist - Histograms in Matlab Commands for histograms and vertical data The hist instruction in Matlab, without output arguments, produces a histogram bar plot of the results. The bar edges on the first …
Step function - unit step with Matlab - matrixlab-examples.com
How to plot the unit step function - Heaviside - with Matlab. Let's see some examples of discrete operations...
Interpolation - easy code with Matlab
Fortunately, Matlab has also several built-in function to interpolate values with different methods (' interp1 ', ' interp2 ', ' interp3 ', and ' interpn '). ' interp1 ' is called one dimensional interpolation …