You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: Base.m
    path of file: ./repos/MathWorks_tools/+adi/+AD9371
    
    the code of the file until where you have to start completion: classdef (Abstract, Hidden = true) Base < adi.common.Attribute & ...
        adi.common.DebugAttribute & matlabshared.libiio.base & ...
        matlab.system.mixin.CustomIcon
    %adi.AD9371.Base Class
    %   This class contains shared parameters and methods between TX and RX
    %   classes
    properties (Nontunable)
        %SamplesPerFrame Samples Per Frame
        %   Number of samples per frame, specified as an even positive
        %   integer from 2 to 16,777,216. Using values less than 3660 can
        %   yield poor performance.
        SamplesPerF
    
function state = savePartState(obj)
            id = 'voltage0';
            state.in1.hardwaregain = getAttributeLongLong(obj,id,'hardwaregain',false);
            state.in1.quadrature_tracking_en = getAttributeLongLong(obj,id,'quadrature_tracking_en',false);
            state.out1.hardwaregain = getAttributeLongLong(obj,id,'hardwaregain',true);
            state.out1.quadrature_tracking_en = getAttributeLongLong(obj,id,'quadrature_tracking_en',true);
            state.out1.lo_leakage_tracking_en = getAttributeLongLong(obj,id,'lo_leakage_tracking_en',true);

            id = 'voltage1';
            state.in2.hardwaregain = getAttributeLongLong(obj,id,'hardwaregain',false);
            state.in2.quadrature_tracking_en = getAttributeLongLong(obj,id,'quadrature_tracking_en',false);
            state.out2.hardwaregain = getAttributeLongLong(obj,id,'hardwaregain',true);
            state.out2.quadrature_tracking_en = getAttributeLongLong(obj,id,'quadrature_tracking_en',true);
            state.out2.lo_leakage_tracking_en = getAttributeLongLong(obj,id,'lo_leakage_tracking_en',true);           
            
            id = 'altvoltage0';
            state.out.RX_LO_frequency = getAttributeLongLong(obj,id,'RX_LO_frequency',true);
            id = 'altvoltage1';
            state.in.TX_LO_frequency = getAttributeLongLong(obj,id,'TX_LO_frequency',true);
        end