Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

mupad new unit creation gives error on Evaluate all multiple times

1 vue (au cours des 30 derniers jours)
timo
timo le 1 Nov 2015
Clôturé : MATLAB Answer Bot le 20 Août 2021
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 ?

Réponses (1)

Walter Roberson
Walter Roberson le 1 Nov 2015
If delete was going to work at all, then you would need to delete unit::KiloWHour
  2 commentaires
timo
timo le 1 Nov 2015
nice try -_-''
Error: The identifier 'unit' is protected. [delete]

Cette question est clôturée.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by