Invalid use of operator

8 Ansichten (letzte 30 Tage)
Renee Thompson
Renee Thompson am 17 Aug. 2022
Beantwortet: Bhavana Ravirala am 22 Aug. 2022
When I run a script I am getting an error in the line that has the following code: function exp_ComputeFrame()
The error is Invalid use of operator.
  2 Kommentare
Renee Thompson
Renee Thompson am 17 Aug. 2022
To follow up, I saw an erorr in a different line for:
function writeTrialToFile(D, trial, fid)
The error is "functions are nested too deeply." This script ran on another computer, but will not run on the current computer, if that helps.
GandaBerunda
GandaBerunda am 18 Aug. 2022
Hi Renee,
Could you please share the script?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Bhavana Ravirala
Bhavana Ravirala am 22 Aug. 2022
Hi Thompson,
I understand that you are facing an error “functions are nested too deeply” while running your code.
This error occurs when there are a lot of nested ‘for’ loops. The possible workaround for this is to use the "eml.inline" command set to "never" to move sections of code into separate functions.
Or you can eliminate it by reducing the nested loops.
Hope this helps!

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by