# (Matlab Cookbook II)

This page continues our work with Matlab programming. You can see other pages like:

Basic Matlab Tutorials

Basic Matlab Examples

 Polynomial Roots (zero finding) To find polynomial roots (aka 'zero finding' process), Matlab has a specific command, namely 'roots'... How to manipulate strings in Matlab - Check Writer -Change numbers into words This Matlab program is a ‘check writer’. You enter a number and the script returns the same amount in letters (any number between 1.00 and 999,999.99...

Angle between two Vectors
This article shows how to calculate the angle between vectors, the angle between each vector and axis, and the magnitude of each vector. The vectors are given in three dimensional space...

Fibonacci Numbers
The first two Fibonacci numbers are 0 and 1, and each remaining number is the sum of the previous two. Some sources neglect the initial 0, and instead beginning the sequence with the first two 1s...

Binary to decimal conversion
We're going to present four variations of a binary-to-decimal conversion in Matlab; that is, we're going to convert binary numbers (numbers with only symbols '0' and '1') to decimal numbers...

Decimal to Binary conversion
Two methods for a decimal-to-binary conversion in Matlab; we're going to convert decimal numbers (numbers with 10 different symbols, from '0' to '9', or in base 10) into binary numbers...

A major numbering system used in digital systems is the hexadecimal system (base 16). Let's see how we can work with 4-bit binary groups...

Hex to Binary conversion
The following table shows the meaning of all the symbols in the hexadecimal numbering system and their conversion to binary equivalents...

Octal to Binary conversion
To convert a value from octal to binary, we first need to know what an octal number is. A major numerical system, or base, used in digital elec...

Decimal to Octal
Two methods for a decimal-to-octal conversion in Matlab; we're going to convert decimal numbers into octal ones...

Octal to Decimal

Gray Code - to/from Bin or Dec
The Gray code code was originally designed to prevent undesired transient states or outputs from electromechanical switches. Today, this code is used to facilitate error correction in digital communications...

MS Excel and Matlab
Interchange of information between these two programs...

Nodal Analysis - find voltages in a circuit

Circuit Simulation using WinSpice and Matlab
In this article, a Matlab routine to drive the WinSpice circuit simulator is presented. This method can be easily adapted to simulate and drive any circuit entered in WinSpice. The performance of the Matlab driver is illustrated by simulating an amplifier...

An improved routine to drive WinSpice from Matlab
The approach developed now utilizes the inherent capability of this SPICE simulator to include other circuit text files with parameters, and print data to external .csv (comma separated values) files...

Mathematical Optimization
To continue with our Matlab programming ideas, let's explore functions 'fminbnd' and 'fminsearch' to achieve minimization of functions, which also can be considered a mathematical optimization for the function...

Find Intersections
The problem of how to find intersections of given lines is very common in math or basic algebra. The meaning of those intersections is that the given lines...

Nonlinear Simultaneous Equations
Another application of the optimization techniques is the solution of nonlinear systems. We can express the solution as a minimization problem...

Curve Fitting based on Optimization techniques
In this article we're going to show a practical approach to solve a curve fitting with Matlab. This explanation is neither formal nor comprehensive, but straightforward and useful...

Exponential Regression
We’ll work this time with exponential regression in a curve fitting example. The following codes find the coefficients of an equation for an exponential curve...

Simple Image Processing
These are some basic ideas on RGB images (or image process in Matlab programming). These concepts are fundamental and don't require any special toolbox...

Line detection
This experiment explores line detection (for image analysis) with this numerical software. No toolbox is needed...

From 'Matlab Programming' to home

 Top 2D Graphs 3D Graphs

## Related pages

binary code letter chartcolor band resistorsstraight line equation calculatorfit tool matlabiteration method in matlabannual depreciation ratedefinite calculatorhalf life formulasmatrix gauss jordansolving matrices in matlabcalculate salvage valuehow to create histogram in matlabconvert from decimal to octalasc11 chartmaclaurin expansion calculatorconvert polar coordinates to cartesian coordinatessolving cubic equations in matlabpoint and slope calculatorhypotenuse calculator incheswriting a function in matlablog function in matlabmatlab gui tutorial for beginnersslope given two points calculatormatlab piecewiseconversion of decimal to octal examplesintegral calculator definiteconversion de decimal a octalconverting from binary to hexsawtooth fourier transformfinding the roots of a quadratic equation calculatorfibonacci ratio calculatortaylor series for cos xseries expansion of sinematlab recursionannual depreciation rate for carsmatlab solve equationsdefine functions matlabplot surface matlabgenerate random number matlabhow to calculate square feet with inchesmatlab plot cubehow to calculate a factorialconvert binary string to decimaltheorem calculatorhow to do dot product in matlabconversion of decimal to binary examplesmaclaurin series expansionsdepreciation salvage valuehow to draw a 3d cuboidbinary code to gray code conversionslope calculator with equationmatrix multiplication in matlabmatlab gui interfaceconverting from hex to binarydirac impulsesine function in matlabc program pascal trianglematlab lagrange interpolationhow to calculate correlation coefficient in matlabheaviside function integralfactorial calconline quadratic formula solverquad function matlabconvert ascii codetower of hanoi solution algorithmcall matlab functionpushbutton matlabhow to learn matlab programmingpythagorean calculatormatrix inversionsswitch case matlab exampleintegral calcultorgetframe matlabhow to solve factorialsmatlab interp3how do you calculate square feet from inchescurve fitting matlab commandcramersrulegauss curvefourier series tutorials exampleshow to convert binary to hexadecimal