MATLAB has an annoying feature of sometimes requiring you to create temporary variables, e.g. temporary_variable
, in order to create something to be used in another variable, after which the temporary variable is not used anywhere else in the code. Is there a performance benefit to using clear temporary_variable
after the temporary variable has done its job? What the most performance efficient way of handling this kind of situation? Thanks for your insight!
x
instead of X
but your code doesn't immediately throw an error because you defined an x
previously. clear
command at the start of a script. (This reduces Heisenbug problems where code works or doesn't work depending on what you did before running the script...)If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With