Info

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

mupad new unit creation gives error on Evaluate all multiple times

1 回表示 (過去 30 日間)
timo
timo 2015 年 11 月 1 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I define a new unit with Mupad
delete kiloWHour;
unit::newUnit(kiloWHour= unit::kiloW*unit::hour)
The problem is that every time I evaluate my notebook from start it gives me an error that the unit is already defined The first delete doesn't do anything. Is this bug in MUPAD ?

回答 (1 件)

Walter Roberson
Walter Roberson 2015 年 11 月 1 日
If delete was going to work at all, then you would need to delete unit::KiloWHour
  2 件のコメント
timo
timo 2015 年 11 月 1 日
nice try -_-''
Error: The identifier 'unit' is protected. [delete]

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by