0% found this document useful (0 votes)
22 views1 page

Electrònica 5

The document discusses using the MATLAB polyfit function to fit experimental diode data to an equation to determine the reverse saturation current and diode parameter n. It provides an example of using polyfit on voltage and current data from a forward-biased diode to calculate IS and n.

Uploaded by

Maricruz Rocha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views1 page

Electrònica 5

The document discusses using the MATLAB polyfit function to fit experimental diode data to an equation to determine the reverse saturation current and diode parameter n. It provides an example of using polyfit on voltage and current data from a forward-biased diode to calculate IS and n.

Uploaded by

Maricruz Rocha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

1

Equation (9.6), a curve of v versus ln(i ) will have a slope given by


nVT
and y-intercept of ln( I S ) . The following example illustrates how to find n
and I S from an experimental data. Since the example requires curve fitting,
the MATLAB function polyfit will be covered before doing the example.

9.1.2 MATLAB function polyfit

The polyfit function is used to compute the best fit of a set of data points to a
polynomial with a specified degree. The general form of the function is

coeff _ xy = polyfit ( x , y , n ) (9.7)

where
x and y are the data points.

n is the n th degree polynomial that will fit the vectors x and y.

coeff _ xy is a polynomial that fits the data in vector y to x in the


least square sense. coeff _ xy returns n+1 coeffi-
cients in descending powers of x.

Thus, if the polynomial fit to data in vectors x and y is given as

coeff _ xy ( x ) = c1 x n + c2 x n −1 + ... + cm

The degree of the polynomial is n and the number of coefficients m = n + 1


and the coefficients ( c1 , c2 , ..., c m ) are returned by the MATLAB polyfit
function.

Example 9.1

A forward-biased diode has the following corresponding voltage and current.


Use MATLAB to determine the reverse saturation current, I S and diode pa-
rameter n.

© 1999 CRC Press LLC

You might also like