Stuart’s MATLAB Videos

Watch and Learn

Modifying Excel column names to legal variables in MATLAB 2

Posted by Doug Hull,

I have been using MATLAB tables lately. In doing that, MATLAB will store meta data with your numeric data. I was bringing data in from Excel files. Each column name will eventually become a variable name. If these column names include characters like ‘(‘ then they can not be MATLAB variable names. Rather than modify the Excel files, I just modified the column names before making the table in MATLAB.

2 CommentsOldest to Newest

Doug replied on : 2 of 2
Ha, MATLAB is a big language. I just reinvented the wheel (again)... Still good to know how to do these things by hand...