Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

And I recieve the following error:
File: CR3BP_NewtonMethod.m Line: 31 Column: 48
Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.
Error in NewtonsMethod_FindGEOIntersect (line 31)
A = CR3BP_NewtonMethod( Z_0, z_k )
I have checked that all parentheses are present and I have abided to the function call. I do not understand why MATLAB is throwing this error. Any assistance is appreciated.

답변 (1개)

Walter Roberson
Walter Roberson 2023년 3월 1일
편집: Walter Roberson 2023년 3월 1일
The problem is inside CR3BP_NewtonMethod.m at line 31 -- not inside the NewtonsMethod_FindGEOIntersect script that you showed us.

카테고리

도움말 센터File Exchange에서 Entering Commands에 대해 자세히 알아보기

질문:

2023년 3월 1일

편집:

2023년 3월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by