Invalid use of operator

조회 수: 10 (최근 30일)
Renee Thompson
Renee Thompson 2022년 8월 17일
답변: Bhavana Ravirala 2022년 8월 22일
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
Renee Thompson
Renee Thompson 2022년 8월 17일
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 2022년 8월 18일
Hi Renee,
Could you please share the script?

댓글을 달려면 로그인하십시오.

답변 (1개)

Bhavana Ravirala
Bhavana Ravirala 2022년 8월 22일
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!

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by