Live script section breaks removes import
古いコメントを表示
In a live script notebook, i f i import a package and add a section break, the import is removed. Is it intended to work that way?
Example:
import casadi.*
***add a section break here ***
x = SX.sym('x');
if i run the first section and then the second one, the first time it works without any issues; but if i try to add to the second section:
x = SX.sym('x');
y = SX.sym('y');
it prduces the error "Unable to solve the name SX.sym" and if i type "import" in the command window it shows the casadi package has been somehow removed, focing me to always rerun the import section
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Scripts についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!