Code covered by the BSD License  

Highlights from
ZfitGUI(varargin) fits and simulates impedance data

5.0

5.0 | 1 rating Rate this file 24 Downloads (last 30 days) File Size: 13.62 KB File ID: #26386
image thumbnail

ZfitGUI(varargin) fits and simulates impedance data

by Jean-Luc Dellis

 

15 Jan 2010 (Updated 21 Feb 2011)

ZfitGUI helps to identify a right model of complex data.

| Watch this File

File Information
Description

% The main features are:
%
% Plot.
% For each immitance types (Z, Y, C or M), the data can be plotted
% in the complex plane, as well their real, imaginary parts or
% their magnitude in function of the frequency (Log/Log).
%
% Simulation.
% The possibilities are almost infinite. Over the classical R, C,
% L electrical elements, one can use CPE (constant Phase Element)
% and even any user-defined element.
%
% Fit.
% ZfitGUI makes use of the simplex algorithm. One can put bounds to
% the parameters and vary the weight wich is defined in a matrix.
% Once a right model has been identified, the user would save time in
% using Zfit.m which is the programmatic version of ZfitGUI.
% Zfit is a shared file as well as ZfitGUI.
%
%
% This help is divided in the 6 following sections:
%
%------------- INPUTS
%------------- UIMENUS
% Plots
% Selectline
% Circuit
% Fit
% Options
% Readme
%------------- OUTPUTS
%------------- MINIMIZATION
%------------- IMMITANCES
%------------- LIMITATIONS

MATLAB release MATLAB 7.4 (R2007a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
15 Jan 2010 Jean-Luc Dellis

Take notice that you may open the 'ZfitGUIdemofig' to test the working.

22 May 2010 Saif

Jean-Luc

Thank you for the great submission. How do I make the LB UB work?

24 May 2010 Saif

Let me elaborate more:

When I write: ZfitGUI([zr',zi',fr']), a window pops up with my nyquist plot. I then choose "SelectLine" and click on the plot. I then go to "Circuit" and I input the circuit string and the vector "Pinit" which I think it works as an initial guess. I get a fitting curve (red) by clicking on "FIT". When I go to "Options" to set "LB/UB" variables and then click "FIT" again, I get an error:

Exiting: Maximum number of function evaluations has been exceeded
         - increase MaxFunEvals option.
         Current function value: NaN

Could you please help me with that?
Thanks.

25 May 2010 Jean-Luc Dellis

Hi Saif, I think all is ok except you maybe enter bad boundaries. I mean the boundaries you put do not allow the code to go toward the best parameters but to NAN. To handle that, you may simulate data. If again difficulties, please send me an email with the data, circuit, pinit and of course the LB/UB. Thanks.

Please login to add a comment or rating.
Updates
11 Mar 2010

- disable the uimenus when one is working
- improve the removeoutlier tool
- improve the way the user inputs the model
- allow generation of data from circuits

19 May 2010

fix a wrong log representation

10 Feb 2011

Numerous improvements...

11 Feb 2011

-follow frequencies
-complex magnitude
-get slopes from the assymptotic lines

21 Feb 2011

Correction of a minor "get the frequency" uimenu's bug.

Tag Activity for this File
Tag Applied By Date/Time
impedance Jean-Luc Dellis 15 Jan 2010 12:07:47
admittance Jean-Luc Dellis 15 Jan 2010 12:07:47
model Jean-Luc Dellis 15 Jan 2010 12:07:47
fitting Jean-Luc Dellis 15 Jan 2010 12:07:47
circuit Jean-Luc Dellis 15 Jan 2010 12:07:47
gui Jean-Luc Dellis 15 Jan 2010 12:07:47
physics Jean-Luc Dellis 15 Jan 2010 12:07:47
optimization Jean-Luc Dellis 15 Jan 2010 12:07:47
menus Jean-Luc Dellis 15 Jan 2010 12:07:47
capacitance Jean-Luc Dellis 11 Mar 2010 10:12:20
modulus Jean-Luc Dellis 11 Mar 2010 10:12:20
capacitance M 19 Jul 2011 21:17:56

Contact us at files@mathworks.com