Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Error storage unknowns , command after Solve

1 回表示 (過去 30 日間)
Reza
Reza 2014 年 12 月 10 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
X=[d3;d5;d6];
B=solve
B =
d3: [1x1 sym]
d5: [1x1 sym]
d6: [1x1 sym]
digits(5)
BB=zeros(3,1);
for d=1:3
BB(d,1)=[vpa(B.X(d,1))]; % Error is Reference to non-existent field 'X'.
end
  1 件のコメント
Geoff Hayes
Geoff Hayes 2014 年 12 月 11 日
Reza - I think that some of your code is missing. Your code is assuming that B is a structure that has a field named X. This is not the case and so the above error message makes sense. Please update your question with the complete code (including how you define d3, d5, and d6) and explain why you are trying to access X from B.

回答 (0 件)

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by