[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
"Permanent" variables
From: |
grg |
Subject: |
"Permanent" variables |
Date: |
Wed, 27 Jan 2016 12:39:39 -0800 (PST) |
Hi there,
I often have at the beginning of my script a series of variable declarations
that I use as shortcuts later in the script.
For example, I may declare
lw = "linewidth";
ms = "markersize";
mfc = "markerfacecolor";
and then use them as
plot(x, y, 'bo-', lw, 2, ms, 5, mfc, 'r')
This works well, but I need to add these declarations at the beginning of
every script and they are not readily available if I need, for example, to
issue a "clear all" command.
So I was wondering if it could be possible to somehow declare these
variables (outside of octave?) in a way that they remain in memory even if I
"clear all".
Many thanks in advance for any help.
Cheers,
grg
--
View this message in context:
http://octave.1599824.n4.nabble.com/Permanent-variables-tp4674551.html
Sent from the Octave - General mailing list archive at Nabble.com.
- "Permanent" variables,
grg <=