Invalid use of operator
Hello,
How are you? I am using MATLAB to work on a research project. Our lab previously created a code to generate a GUI, enabling us (non-coders) to use MATLAB and carry out the research. The code was working fine, but then I tried to copy the MATLAB file from the Documents folder to a different folder. It worked fine for one case but then stopped working. I am getting this error:
X.m Line:709 Column:1 Invalid use of operator.
We have checked the code and there is no issue, especially in line 709 and its surroundings. I have tried the following steps:
Putting the MATLAB folder back in Documents -> same error.
Uninstalling MATLAB from my Mac and reinstalling the same version -> same error.
Using a previous code for the GUI that has exactly the same code in line 709 -> works fine. (I can’t use this code as the latest one has functions that I need for my work.)
Seeing that the only thing that had changed was the directory, I am assuming it has something to do with that. I must note that even after changing the directory, it worked for one sample and then stopped working. I am really stuck and would appreciate anyone’s feedback.
Thank you and kind regards,
SouvikHello,
How are you? I am using MATLAB to work on a research project. Our lab previously created a code to generate a GUI, enabling us (non-coders) to use MATLAB and carry out the research. The code was working fine, but then I tried to copy the MATLAB file from the Documents folder to a different folder. It worked fine for one case but then stopped working. I am getting this error:
X.m Line:709 Column:1 Invalid use of operator.
We have checked the code and there is no issue, especially in line 709 and its surroundings. I have tried the following steps:
Putting the MATLAB folder back in Documents -> same error.
Uninstalling MATLAB from my Mac and reinstalling the same version -> same error.
Using a previous code for the GUI that has exactly the same code in line 709 -> works fine. (I can’t use this code as the latest one has functions that I need for my work.)
Seeing that the only thing that had changed was the directory, I am assuming it has something to do with that. I must note that even after changing the directory, it worked for one sample and then stopped working. I am really stuck and would appreciate anyone’s feedback.
Thank you and kind regards,
Souvik Hello,
How are you? I am using MATLAB to work on a research project. Our lab previously created a code to generate a GUI, enabling us (non-coders) to use MATLAB and carry out the research. The code was working fine, but then I tried to copy the MATLAB file from the Documents folder to a different folder. It worked fine for one case but then stopped working. I am getting this error:
X.m Line:709 Column:1 Invalid use of operator.
We have checked the code and there is no issue, especially in line 709 and its surroundings. I have tried the following steps:
Putting the MATLAB folder back in Documents -> same error.
Uninstalling MATLAB from my Mac and reinstalling the same version -> same error.
Using a previous code for the GUI that has exactly the same code in line 709 -> works fine. (I can’t use this code as the latest one has functions that I need for my work.)
Seeing that the only thing that had changed was the directory, I am assuming it has something to do with that. I must note that even after changing the directory, it worked for one sample and then stopped working. I am really stuck and would appreciate anyone’s feedback.
Thank you and kind regards,
Souvik invalid use of operator MATLAB Answers — New Questions