setVariable2Values
Update values of all elements in Breakpoint2Name column of
        EISTest object
Since R2025a
Description
setVariable2Values(
        assigns the value of the batteryEISTest,newValues)newValues argument to all the present elements
        in the breakpoint2Name column of the EISTest object
          batteryEISTest.
Examples
This example shows how to update the values of all elements in the
            Breakpoint2Name column of the TestSummary
          property of an EISTest object. 
Open the DownloadBatteryEISData example and load the required EIS
            data. This data has been generated from a battery with a nominal capacity of
              30/1000 A*Hr at a temperature of 25 °C. This data consists of a
              500-by-3 matrix of doubles. The columns of the
            matrix refer to the frequency, real impedance, and imaginary impedance values,
            respectively.
openExample("simscapebattery/DownloadBatteryEISDataExample") load("generatedEISData.mat")
Store the EIS data inside an EISTest object by using the eisTest function. You can use this object
            to automatically extract and analyze individual impedance profiles from EIS
            frequency-based data.
eisExp = eisTest(eisData);
Analyze the TestSummary property of the eisExp
            object. This property contains a summary of the EIS test that shows all the identified
            profiles and related data, returned as a table.
eisExp.TestSummary
ans =
  5×7 table
    ProfileID    ImpedanceData    Breakpoint1    Breakpoint2    Breakpoint3    ProfileStartIndex    ProfileEndIndex
    _________    _____________    ___________    ___________    ___________    _________________    _______________
        1        {87×3 double}         1             25              1                  1                 100      
        2        {87×3 double}         2             25              1                101                 200      
        3        {87×3 double}         3             25              1                201                 300      
        4        {87×3 double}         4             25              1                301                 400      
        5        {87×3 double}         5             25              1                401                 500   For this example, generate a vector of five random numbers. This vector contains the
            values you want to replace for all profiles under the Breakpoint2
            column. The number of elements in this vector must match the number of profiles in the
            test data.
updatedValues = rand(1,5)*100;
updatedValues = 75.7740 74.3132 39.2227 65.5478 17.1187
Update the values of all elements in the Breakpoint2 column of
            the TestSummary property by using the
              setVariable2Values function.
setVariable2Values(eisExp,updatedValues)
View the effects of the function by using the TestSummary
            property again. The function successfully updates the values of all elements inside the
              Breakpoint2 column.
eisExp.TestSummary
ans =
  5×7 table
    ProfileID    ImpedanceData    Breakpoint1    Breakpoint2    Breakpoint3    ProfileStartIndex    ProfileEndIndex
    _________    _____________    ___________    ___________    ___________    _________________    _______________
        1        {87×3 double}         1           75.774            1                  1                 100      
        2        {87×3 double}         2           74.313            1                101                 200      
        3        {87×3 double}         3           39.223            1                201                 300      
        4        {87×3 double}         4           65.548            1                301                 400      
        5        {87×3 double}         5           17.119            1                401                 500      
 Input Arguments
Electrochemical impedance spectroscopy (EIS) test object that contains the
            breakpoint values to update, specified as an EISTest object.
Values to assign to the elements in the Breakpoint2Name column
            of the TestSummary property of the EISTest object,
            specified as a scalar or vector. The size of this argument must match the number of
            profiles in the EISTest object.
Data Types: double
Version History
Introduced in R2025a
See Also
eisTest | setVariable1Values | setVariable3Values | removeProfile
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Seleccione un país/idioma
Seleccione un país/idioma para obtener contenido traducido, si está disponible, y ver eventos y ofertas de productos y servicios locales. Según su ubicación geográfica, recomendamos que seleccione: .
También puede seleccionar uno de estos países/idiomas:
Cómo obtener el mejor rendimiento
Seleccione China (en idioma chino o inglés) para obtener el mejor rendimiento. Los sitios web de otros países no están optimizados para ser accedidos desde su ubicación geográfica.
América
- América Latina (Español)
- Canada (English)
- United States (English)
Europa
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)