Empty sym: 0-by-1 Error

조회 수: 2 (최근 30일)
Bethany O'Connor
Bethany O'Connor 2020년 3월 11일
댓글: Walter Roberson 2020년 3월 16일
I am trying to find an interative solution to a problem I have. My TA in the class gave me this script and his works perfectly; however, mine gives me an Empty sym: 0-by-1 error whenever I try to run it.
Here is my script:
Data = [5.542803392, 2.874974422, 0.116610421, 1.897079378;
88.51537734, 3.18981575, 0.3460802, 22.83417623];
[row,col]=size(Data);
for n=1:row
syms t
Age_638 = Age638(1/Data(n,1))/1e+6;
R = Data(n,3);
Age7_6 = solve(Rad7_6(t) == R,t)/1e+6
end
I'd love some feedback on what is causing the issue.
  댓글 수: 1
Walter Roberson
Walter Roberson 2020년 3월 11일
Age_638 = Age638(1/Data(n,1))/1e+6;
Age638 is not defined at that point. If it is a variable then it is very likely that your attempt to index it would be invalid.

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

답변 (1개)

Mahesh Taparia
Mahesh Taparia 2020년 3월 16일
Hi
Age638 and Rad7_6(t) are not defined. First defined these variable/ function in the code. Hope it will help.
  댓글 수: 1
Walter Roberson
Walter Roberson 2020년 3월 16일
And assign the result in the loop to Age7_6{n} and Age_638(n)

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

카테고리

Help CenterFile Exchange에서 Conversion Between Symbolic and Numeric에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by