relation between variable name and program speed

1 visualización (últimos 30 días)
boureghda mohammed
boureghda mohammed el 6 de Oct. de 2016
Editada: Matthias Walle el 6 de Oct. de 2016
Is the variable name affects the speed of the program or memory storage. if a take for example a variable like
par = 10; or
parameter = 10;

Respuestas (1)

Matthias Walle
Matthias Walle el 6 de Oct. de 2016
Editada: Matthias Walle el 6 de Oct. de 2016
you can use the
tic
%Code
toc
Function to compare the speed. My bet is that you can chose any name and it wont affect the program speed by much or even not at all same goes for storage.

Categorías

Más información sobre Scope Variables and Generate Names en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by