Error inserting symbolic expression in for-loop
古いコメントを表示
A have some expressions outside a loop and want to use them inside the loop like
p=P(i,j) %some expressions that must be calculated outside the loop
q=Q(i,j) %some expressions that must be calculated outside the loop
for i=1:10
for j=1:10
W(i,j)=P+i+j
V(i,j)=Q+i-j
end
end
i keep recieving this error:
The following error occurred converting from sym to double:
Unable to convert expression into double array.
1 件のコメント
Rik
2019 年 1 月 25 日
What are the classes and sizes of the variables you're using? And what are you trying to achieve as a result?
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Conversion についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!