I am trying to load a .mat file using the 'load' function. The file seems to load correctly, but some of the variables are not accessible. My best guess is that this is because the name of the variables (which was set by someone else in R and then exported to a .mat file) contains a dot (see pic)
As an example, one of the variables is a vector called 'final.product'. If I try to access the first element, I would get this
>>final.product(1)
Undefined variable "final" or class "final.product".
This works fine with the variables whose name do not contain any dots.
I have tried to modify the name from the Workspace (i.e. by clicking once on the name and removing the dot), but I am prompted with an error message saying
All the other things I have tried in the Command Window give me errors related to the fact that my variables don't exist or that the name is invalid, for example
>> T = from.product;
Undefined variable "from" or class "from.product".
Or
>>T = load('C:\Users\Loup\Downloads\5. Source-Intermediates-Products.mat', 'final.product');
T = T.('final.product');
Error using load
Invalid field name: 'final.product'.
So I guess I have two questions:
1) can someone confirm that my issue is caused by having dots in the variable names?
2) is there a way to rename a variable that does not require being able to read them?
Thanks a lot!

