MATLAB: Importing a Table :: [Variables are been modified by Matlab]

MATLABtablevariable

Hi I have recently started using matlab. I am trying to import a spreadsheet as a table and some of my variables [Colum Names] get modified when I look at them using T.Properties.Variablenames. So I checked the function genvalidnames which is apparently responsible for changing the "non-matlab" variable names to standard matlab variable names. My Column names in the Spreadsheet all start with a character, have only underscores and are not longer than nameslength which i checked is 63. Still I get the modified names. Any idea why this will be happening.

Best Answer

I don't see how it's being changed. Here is my code:
t = readtable('VAT_Experiment_Sheet_Assign_Table_Structure_Units.xlsx')
fieldnames(t)
and here is what I see:
ans =
'DCDC_CurrentLimiting_Warning_BOOL'
'DCDC_CoolantOTP_Warning_BOOL'
'DCDC_Wakeup_Status_BOOL'
'DCDC_UnitEnabled_Status_BOOL'
'DCDC_StartUpInitDone_Status_BOOL'
'DCDC_RemoteShutdown_Status_BOOL'
'DCDC_LatchedFault_Status_BOOL'
'DCDC_InputOk_Status_BOOL'
'DCDC_HVIL_OK_Status_BOOL'
'DCDC_Status_Fault_BOOL'
'DCDC_Thermistor_Fault_BOOL'
'DCDC_ShortCircuit_Fault_BOOL'
'DCDC_OutputUV_Fault_BOOL'
'DCDC_OutputOV_Fault_BOOL'
'DCDC_OutputOC_Fault_BOOL'
'DCDC_OTP_Fault_BOOL'
'DCDC_InputUV_Fault_BOOL'
'DCDC_InputOV_Fault_BOOL'
'DCDC_I2C_FAULT_BOOL'
'DCDC_EEPROM_CRCfault_Fault_BOOL'
'DCDC_CANfault_Fault_BOOL'
'DCDCReversPolarity_Fault_BOOL'
'DCDC_ReversPolarity_Status_BOOL'
'DCDC_Coolant_Temprature_VALUE_DEGC'
'DCDC_Output_CURRENT_VALUE_AMP'
'DCDC_Input_Voltage_VALUE_VOLT'
'DCDC_Output_Voltage_VALUE_VOLT'
'DCDC_Output_voltage_UV_Fault_BOOL'
'DCDC_Output_voltage_OV_Fault_BOOL'
'DCDC_Output_limit_Current_VALUE_AMP'
'DCDCOutput_setpoint_Voltage_VALUE_VOLT'
'DCDCDcDc_Set_index_byte_Mplx'
'DCDC_RemoteEnable_Status_ENUM'
'DCDC_Temperature_coolant_Warning_VALUE_DEGC'
'DCDC_Temperature_Coolant_Fault_BOOL_DEGC'
'Properties'
Unless I'm overlooking something, like a double underline or something, the "DCDC_OutputOC_Fault_BOOL" looks the same in both Excel and MATLAB.